CSS named color

Medium Sea Green #3CB371

The CSS keyword mediumseagreen is #3CB371. It is a light soft green in the green family. In OKLCH it sits at lightness 0.684, chroma 0.144 and hue 155.0°.

Relative luminance
0.3439
OKLCH L · C · h
0.684 · 0.144 · 155.0
Best text
Black 7.87:1
Hue family
Green

#3CB371 color codes

HEX
#3CB371
RGB
rgb(60, 179, 113)
HSL
hsl(147, 50%, 47%)
OKLCH
oklch(0.684 0.144 155.0)
OKLab
oklab(0.684 -0.131 0.061)
CIELAB (D65)
L* 65.27, a* -48.22, b* 24.29
XYZ (D65)
X 20.96, Y 34.39, Z 21.15
CMYK (naive)
cmyk(66%, 0%, 37%, 30%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #3CB371 accessible?

Black text on it reaches 7.87:1, passing AAA. White text fails at 2.66:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    7.87:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +52
  • White text on it

    2.66:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −56
  • As text on black

    7.87:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −50
  • As text on white

    2.66:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +51

Nearest versions that pass 4.5:1

  • For text on white

    #00884C 4.53:1

    Darkening its OKLCH lightness from 0.68 to 0.55 reaches 4.53:1 on white, keeping the hue.

  • For text on black

    #3CB371 7.87:1

    It already reaches 7.87:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #3CB371 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #3CB371

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #3CB371 sits at step 400.

  1. 50#DEFFE8
    White
    1.07
    Black
    19.57
  2. 100#B7FFCF
    White
    1.15
    Black
    18.21
  3. 200#8FF0B3
    White
    1.37
    Black
    15.28
  4. 300#6ED797
    White
    1.77
    Black
    11.83
  5. 400This color#3CB371
    White
    2.66
    Black
    7.87
  6. 500#1F9F5E
    White
    3.39
    Black
    6.17
  7. 600#00844A
    White
    4.77
    Black
    4.39
  8. 700#006A3A
    White
    6.72
    Black
    3.12
  9. 800#004D29
    White
    10.03
    Black
    2.09
  10. 900#003219
    White
    14.28
    Black
    1.47
  11. 950#001C0B
    White
    17.93
    Black
    1.17

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #3CB371 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.169; #3CB371 uses 85% of it. Display P3, which many recent phones and laptops show, reaches 0.234 there: 39% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.144
sRGB edge
0.169
Display P3 edge
0.234
Rec. 2020 edge
0.367
Dominant wavelength
531 nm
Excitation purity
25%
Chromaticity
x 0.2740, y 0.4495
  • This color#3CB371
  • Most vivid in sRGB#00B769
  • Most vivid in Display P3oklch(0.684 0.234 155.0)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #3cb371;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.7389 0.3676); }
}

Mixing

Mixing #3CB371

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#9ED9B8
  • OKLab50%#A6DAB7
  • OKLCH50%#A6DAB7

Black #000000

  • sRGB50%#1E5A39
  • OKLab50%#114327
  • OKLCH50%#114327

Its complement #CF75BD

  • sRGB50%#869497
  • OKLab50%#999A9A
  • OKLCH50%#3CA1EC
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #3cb371, white);
color: color-mix(in oklch, #3cb371 50%, white);

In use

#3CB371 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:17.87:1 Passes
  • Link and body-size textText, 4.5:12.66:1 Fails
  • Large headingLarge text, 3:12.66:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.66:1 Fails

For text on this page, the nearest shade that passes is #00884C 4.53:1

Dark page

  • Button labelText, 4.5:17.87:1 Passes
  • Link and body-size textText, 4.5:17.02:1 Passes
  • Large headingLarge text, 3:17.02:1 Passes
  • Icons, borders and focus ringsNon-text, 3:17.02:1 Passes

Color vision

How #3CB371 looks with color blindness

Achromatopsia changes it most, ΔE2000 25.2; tritanopia changes it least, 14.5.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #B2A56D ΔE2000 23.6

    Distinct

    Reads as light muted amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #A39A75 ΔE2000 22.7

    Distinct

    Reads as light muted amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #00B1A2 ΔE2000 14.5

    Distinct

    Reads as light soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #9E9E9E ΔE2000 25.2

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #CF75BD. Their lightness contrast is only 1.13:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#3CB371 · #CF75BD71.0Stays distinct
Protanopia#B2A56D · #758CC040.5Stays distinct
Deuteranopia#A39A75 · #8D99BA29.8Stays distinct
Tritanopia#00B1A2 · #D7799058.0Stays distinct
Achromatopsia#9E9E9E · #9494943.2Easily confused

Harmony

Color harmonies for #3CB371

Its complement is #CF75BD, a light soft magenta.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#3CB371
  • Complement#CF75BD

Complementary

Open in Harmony Studio
  • −30°#85A838
  • Base#3CB371
  • +30°#00B1A3
  • Base#3CB371
  • +120°#8090F1
  • +240°#E4755A
  • Base#3CB371
  • +150°#AE80E0
  • +210°#E1708D

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-mediumseagreen: #3cb371;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        mediumseagreen: '#3cb371',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-mediumseagreen: oklch(0.684 0.144 155.0);
}

Design token (W3C DTCG)

{
  "color": {
    "mediumseagreen": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2353, 0.702, 0.4431],
        "hex": "#3cb371"
      },
      "$description": "CSS named color mediumseagreen"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let mediumseagreen = Color(.sRGB, red: 0.235, green: 0.702, blue: 0.443, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Mediumseagreen = Color(0xFF3CB371)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #3CB371 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.