#CFD162#CFD162

#CFD162 is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.7% C 0.134 H 109.9°. Best body text is #000000 at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#CFD162
RGBrgb(207, 209, 98)
HSLhsl(61, 55%, 60%)
HSVhsv(61, 53%, 82%)
CMYKcmyk(1%, 0%, 53.1%, 18%)
CIE-LABlab(81.70, -15.52, 53.98)
CIE-LCHlch(81.70, 56.17, 106.04°)
OKLaboklab(83.69% -0.0457 0.1262)
OKLCHoklch(83.69% 0.134 109.9)
XYZxyz(50.7384, 59.7494, 20.4129)
Luminance0.5975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD162 #6462D1
analogous
#D19B62 #CFD162 #97D162
triadic
#CFD162 #62CFD1 #D162CF
tetradic
#CFD162 #62D19B #6462D1 #D16297
square
#CFD162 #62D19B #6462D1 #D16297
split-complementary
#CFD162 #6297D1 #9B62D1
monochromatic
#8D8F2A #BCBE38 #CFD162 #DDDF91 #ECEDC1

Accessibility & contrast

On white

1.62
#CFD162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.95
#CFD162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD162
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD162#FFFFFF#000000##000000
##CFD1621.001.6212.9512.95
#FFFFFF1.621.0021.0021.00
#00000012.9521.001.001.00
##00000012.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC957
Deuteranopia (green-blind)
#E1CD68
Tritanopia (blue-blind)
#DCC6B8
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cfd162;
/* rgb */ color: rgb(207, 209, 98);
/* oklch */ color: oklch(83.7% 0.134 109.9);
Tailwind
colors: {
  custom: {
    50: '#e0de92',
    500: '#cfd162',
    950: '#000000',
  },
}
SCSS
$custom: #cfd162;
$custom-light: #e0de92;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd162",
  "rgb": {
    "r": 207,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 61.081,
    "s": 54.68,
    "l": 60.196
  },
  "oklch": {
    "l": 0.83687,
    "c": 0.13421,
    "h": 109.9
  },
  "luminance": 0.59748
}

Semantic roles & 50–950 ramp

primary
#CFD162
secondary
#444295
accent
#23C226
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150D
muted
#84847F

Preview Lab

Preview with #CFD162

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

Preview Lab → · Contrast checker → · Palette generator →

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