#CFE172#CFE172

#CFE172 is a very light, vivid yellow. Relative luminance 0.683; OKLCH L 87.3% C 0.138 H 117.0°. Best body text is #000000 at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#CFE172
RGBrgb(207, 225, 114)
HSLhsl(70, 65%, 66%)
HSVhsv(70, 49%, 88%)
CMYKcmyk(8%, 0%, 49.3%, 11.8%)
CIE-LABlab(86.17, -21.99, 51.81)
CIE-LCHlch(86.17, 56.28, 113.00°)
OKLaboklab(87.32% -0.0625 0.1229)
OKLCHoklch(87.32% 0.138 117)
XYZxyz(55.6953, 68.3313, 26.1715)
Luminance0.6833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFE172 #8472E1
analogous
#E1BC72 #CFE172 #98E172
triadic
#CFE172 #72CFE1 #E172CF
tetradic
#CFE172 #72E1BC #8472E1 #E17298
square
#CFE172 #72E1BC #8472E1 #E17298
split-complementary
#CFE172 #7298E1 #BC72E1
monochromatic
#9CB326 #BED640 #CFE172 #E0ECA4 #F1F6D7

Accessibility & contrast

On white

1.43
#CFE172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.67
#CFE172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFE172
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFE172#FFFFFF#000000##000000
##CFE1721.001.4314.6714.67
#FFFFFF1.431.0021.0021.00
#00000014.6721.001.001.00
##00000014.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED768
Deuteranopia (green-blind)
#ECD878
Tritanopia (blue-blind)
#D9D7C8
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #cfe172;
/* rgb */ color: rgb(207, 225, 114);
/* oklch */ color: oklch(87.3% 0.138 117.0);
Tailwind
colors: {
  custom: {
    50: '#dfea9d',
    500: '#cfe172',
    950: '#000000',
  },
}
SCSS
$custom: #cfe172;
$custom-light: #dfea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfe172",
  "rgb": {
    "r": 207,
    "g": 225,
    "b": 114
  },
  "hsl": {
    "h": 69.73,
    "s": 64.912,
    "l": 66.471
  },
  "oklch": {
    "l": 0.87315,
    "c": 0.13791,
    "h": 117
  },
  "luminance": 0.68331
}

Semantic roles & 50–950 ramp

primary
#CFE172
secondary
#5643B4
accent
#19CD36
background
#FEFEFC
surface
#FCFDF5
border
#D5D5CF
text
#15160E
muted
#84847F

Preview Lab

Preview with #CFE172

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

Preview Lab → · Contrast checker → · Palette generator →

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