#CFC23B#CFC23B

#CFC23B is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.1% C 0.150 H 103.7°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#CFC23B
RGBrgb(207, 194, 59)
HSLhsl(55, 61%, 52%)
HSVhsv(55, 71%, 81%)
CMYKcmyk(0%, 6.3%, 71.5%, 18.8%)
CIE-LABlab(77.38, -10.46, 65.67)
CIE-LCHlch(77.38, 66.50, 99.05°)
OKLaboklab(80.14% -0.0355 0.1454)
OKLCHoklch(80.14% 0.15 103.7)
XYZxyz(45.8153, 52.1666, 11.7927)
Luminance0.5216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC23B #3B48CF
analogous
#CF783B #CFC23B #92CF3B
triadic
#CFC23B #3BCFC2 #C23BCF
tetradic
#CFC23B #3BCF78 #3B48CF #CF3B92
square
#CFC23B #3BCF78 #3B48CF #CF3B92
split-complementary
#CFC23B #3B92CF #783BCF
monochromatic
#736C1C #A59A28 #CFC23B #DBD16C #E7E19D

Accessibility & contrast

On white

1.84
#CFC23B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CFC23B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC23B
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC23B#FFFFFF#000000##000000
##CFC23B1.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC24
Deuteranopia (green-blind)
#D8C244
Tritanopia (blue-blind)
#DEB5A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc23b;
/* rgb */ color: rgb(207, 194, 59);
/* oklch */ color: oklch(80.1% 0.150 103.7);
Tailwind
colors: {
  custom: {
    50: '#e1d47a',
    500: '#cfc23b',
    950: '#000000',
  },
}
SCSS
$custom: #cfc23b;
$custom-light: #e1d47a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc23b",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 59
  },
  "hsl": {
    "h": 54.73,
    "s": 60.656,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80142,
    "c": 0.14971,
    "h": 103.7
  },
  "luminance": 0.52165
}

Semantic roles & 50–950 ramp

primary
#CFC23B
secondary
#32397C
accent
#52E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFC23B

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

Preview Lab → · Contrast checker → · Palette generator →

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