#CFD151#CFD151

#CFD151 is a very light, vivid yellow. Relative luminance 0.595; OKLCH L 83.5% C 0.149 H 110.1°. Best body text is #000000 at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#CFD151
RGBrgb(207, 209, 81)
HSLhsl(61, 58%, 57%)
HSVhsv(61, 61%, 82%)
CMYKcmyk(1%, 0%, 61.2%, 18%)
CIE-LABlab(81.54, -16.77, 61.28)
CIE-LCHlch(81.54, 63.54, 105.31°)
OKLaboklab(83.51% -0.051 0.1397)
OKLCHoklch(83.51% 0.149 110.1)
XYZxyz(50.0193, 59.4617, 16.6254)
Luminance0.5946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD151 #5351D1
analogous
#D19351 #CFD151 #8FD151
triadic
#CFD151 #51CFD1 #D151CF
tetradic
#CFD151 #51D193 #5351D1 #D1518F
square
#CFD151 #51D193 #5351D1 #D1518F
split-complementary
#CFD151 #518FD1 #9351D1
monochromatic
#838523 #B3B530 #CFD151 #DCDE81 #EAEBB2

Accessibility & contrast

On white

1.63
#CFD151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.89
#CFD151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD151
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD151#FFFFFF#000000##000000
##CFD1511.001.6312.8912.89
#FFFFFF1.631.0021.0021.00
#00000012.8921.001.001.00
##00000012.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C941
Deuteranopia (green-blind)
#E2CD59
Tritanopia (blue-blind)
#DDC5B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cfd151;
/* rgb */ color: rgb(207, 209, 81);
/* oklch */ color: oklch(83.5% 0.149 110.1);
Tailwind
colors: {
  custom: {
    50: '#e1de87',
    500: '#cfd151',
    950: '#000000',
  },
}
SCSS
$custom: #cfd151;
$custom-light: #e1de87;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd151",
  "rgb": {
    "r": 207,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 60.938,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.83512,
    "c": 0.14873,
    "h": 110.1
  },
  "luminance": 0.5946
}

Semantic roles & 50–950 ramp

primary
#CFD151
secondary
#3C3B8B
accent
#46E149
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CFD151

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

Preview Lab → · Contrast checker → · Palette generator →

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