#CFE787#CFE787

#CFE787 is a very light, vivid yellow-green. Relative luminance 0.722; OKLCH L 88.9% C 0.124 H 120.5°. Best body text is #000000 at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#CFE787
RGBrgb(207, 231, 135)
HSLhsl(75, 67%, 72%)
HSVhsv(75, 42%, 91%)
CMYKcmyk(10.4%, 0%, 41.6%, 9.4%)
CIE-LABlab(88.05, -22.73, 44.03)
CIE-LCHlch(88.05, 49.56, 117.31°)
OKLaboklab(88.9% -0.0629 0.107)
OKLCHoklch(88.9% 0.124 120.5)
XYZxyz(58.6813, 72.1666, 33.7551)
Luminance0.7217 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFE787 #9F87E7
analogous
#E7CF87 #CFE787 #9FE787
triadic
#CFE787 #87CFE7 #E787CF
tetradic
#CFE787 #87E7CF #9F87E7 #E7879F
square
#CFE787 #87E7CF #9F87E7 #E7879F
split-complementary
#CFE787 #879FE7 #CF87E7
monochromatic
#A2CB29 #BBDD54 #CFE787 #E3F1BA #F5FAE5

Accessibility & contrast

On white

1.36
#CFE787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.43
#CFE787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFE787
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFE787#FFFFFF#000000##000000
##CFE7871.001.3615.4315.43
#FFFFFF1.361.0021.0021.00
#00000015.4321.001.001.00
##00000015.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DD7F
Deuteranopia (green-blind)
#EFDD8C
Tritanopia (blue-blind)
#D7DED0
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #cfe787;
/* rgb */ color: rgb(207, 231, 135);
/* oklch */ color: oklch(88.9% 0.124 120.5);
Tailwind
colors: {
  custom: {
    50: '#dfeeab',
    500: '#cfe787',
    950: '#000000',
  },
}
SCSS
$custom: #cfe787;
$custom-light: #dfeeab;
$custom-dark: #000000;
JSON
{
  "hex": "#cfe787",
  "rgb": {
    "r": 207,
    "g": 231,
    "b": 135
  },
  "hsl": {
    "h": 75,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.88902,
    "c": 0.12414,
    "h": 120.5
  },
  "luminance": 0.72166
}

Semantic roles & 50–950 ramp

primary
#CFE787
secondary
#6E52C0
accent
#17CF45
background
#FEFFFD
surface
#FCFEF7
border
#D5D6D0
text
#151610
muted
#848581

Preview Lab

Preview with #CFE787

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CFE787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva