CSS named color

Spring Green #00FF7F

The CSS keyword springgreen is #00FF7F. It is a pale vivid green in the green family. In OKLCH it sits at lightness 0.875, chroma 0.235 and hue 151.0°.

Relative luminance
0.7305
OKLCH L · C · h
0.875 · 0.235 · 151.0
Best text
Black 15.61:1
Hue family
Green

#00FF7F color codes

HEX
#00FF7F
RGB
rgb(0, 255, 127)
HSL
hsl(150, 100%, 50%)
OKLCH
oklch(0.875 0.235 151.0)
OKLab
oklab(0.875 -0.206 0.114)
CIELAB (D65)
L* 88.47, a* -76.90, b* 47.03
XYZ (D65)
X 39.59, Y 73.05, Z 32.09
CMYK (naive)
cmyk(100%, 0%, 50%, 0%)

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 #00FF7F accessible?

Black text on it reaches 15.61:1, passing AAA. White text fails at 1.34: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

    15.61:1

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

    1.34:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −18

    Text is here, unreadable at 1.34:1

  • As text on black

    15.61:1

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

    1.34:1

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

    Text is here, unreadable at 1.34:1

Nearest versions that pass 4.5:1

  • For text on white

    #008941 4.51:1

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

  • For text on black

    #00FF7F 15.61:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #00FF7F 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 #00FF7F

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #00FF7F sits at step 200.

  1. 50#DFFFE5
    White
    1.07
    Black
    19.57
  2. 100#BAFFC9
    White
    1.15
    Black
    18.23
  3. 200This color#00FF7F
    White
    1.34
    Black
    15.61
  4. 300#00E370
    White
    1.71
    Black
    12.22
  5. 400#00C15F
    White
    2.38
    Black
    8.79
  6. 500#00A14E
    White
    3.38
    Black
    6.20
  7. 600#00853F
    White
    4.74
    Black
    4.42
  8. 700#006A31
    White
    6.76
    Black
    3.10
  9. 800#004E22
    White
    9.93
    Black
    2.11
  10. 900#003314
    White
    14.15
    Black
    1.48
  11. 950#001D08
    White
    17.80
    Black
    1.17

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

Gamut

How vivid #00FF7F can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.235; #00FF7F uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.264 there: 12% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.235
sRGB edge
0.235
Display P3 edge
0.264
Rec. 2020 edge
0.315
Dominant wavelength
538 nm
Excitation purity
40%
Chromaticity
x 0.2735, y 0.5047
  • This color#00FF7F
  • Most vivid in sRGB#00FF7F
  • Most vivid in Display P3oklch(0.875 0.264 151.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: #00ff7f;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.3837 1 0.5113); }
}

Mixing

Mixing #00FF7F

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%#80FFBF
  • OKLab50%#AFFFC2
  • OKLCH50%#B6FFC7

Black #000000

  • sRGB50%#008040
  • OKLab50%#00632D
  • OKLCH50%#00632D

Its complement #FFBCF6

  • sRGB50%#80DEBB
  • OKLab50%#B8E2C0
  • OKLCH50%#FFCA9D
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #00ff7f, white);
color: color-mix(in oklch, #00ff7f 50%, white);

In use

#00FF7F 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:115.61:1 Passes
  • Link and body-size textText, 4.5:11.34:1 Fails
  • Large headingLarge text, 3:11.34:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.34:1 Fails

For text on this page, the nearest shade that passes is #008941 4.51:1

Dark page

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

Color vision

How #00FF7F looks with color blindness

Achromatopsia changes it most, ΔE2000 29.8; tritanopia changes it least, 19.3.

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

    #FFE874 ΔE2000 29.4

    Distinct

    Reads as pale soft amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #E9D789 ΔE2000 28.2

    Distinct

    Reads as pale soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #00FBE1 ΔE2000 19.3

    Distinct

    Reads as pale soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #DEDEDE ΔE2000 29.8

    Distinct

    Reads as off-white

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#00FF7F · #FFBCF675.0Stays distinct
Protanopia#FFE874 · #BACCF845.1Stays distinct
Deuteranopia#E9D789 · #CAD5F436.2Stays distinct
Tritanopia#00FBE1 · #FFC0D055.2Stays distinct
Achromatopsia#DEDEDE · #D1D1D13.0Easily confused

Harmony

Color harmonies for #00FF7F

Its complement is #FFBCF6, a pale soft magenta.

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

Open the Harmony Studio
  • Base#00FF7F
  • Complement#FFBCF6

Complementary

Open in Harmony Studio
  • −30°#C2E900
  • Base#00FF7F
  • +30°#00F7DC
  • Base#00FF7F
  • +120°#C7D4FF
  • +240°#FFC6BB
  • Base#00FF7F
  • +150°#DECBFF
  • +210°#FFC3D3

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-springgreen: #00ff7f;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        springgreen: '#00ff7f',
      },
    },
  },
};

Tailwind v4 theme

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

@theme {
  --color-springgreen: oklch(0.875 0.235 151.0);
}

Design token (W3C DTCG)

{
  "color": {
    "springgreen": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0, 1, 0.498],
        "hex": "#00ff7f"
      },
      "$description": "CSS named color springgreen"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let springgreen = Color(.sRGB, red: 0.000, green: 1.000, blue: 0.498, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Springgreen = Color(0xFF00FF7F)
}

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 #00FF7F in the tools

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