#CFC258#CFC258

#CFC258 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.4% C 0.128 H 102.4°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#CFC258
RGBrgb(207, 194, 88)
HSLhsl(53, 55%, 58%)
HSVhsv(53, 57%, 81%)
CMYKcmyk(0%, 6.3%, 57.5%, 18.8%)
CIE-LABlab(77.61, -8.71, 53.89)
CIE-LCHlch(77.61, 54.59, 99.18°)
OKLaboklab(80.4% -0.0274 0.1249)
OKLCHoklch(80.4% 0.128 102.4)
XYZxyz(46.7870, 52.5553, 16.9103)
Luminance0.5255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC258 #5865CF
analogous
#CF8658 #CFC258 #A1CF58
triadic
#CFC258 #58CFC2 #C258CF
tetradic
#CFC258 #58CF86 #5865CF #CF58A1
square
#CFC258 #58CF86 #5865CF #CF58A1
split-complementary
#CFC258 #58A1CF #8658CF
monochromatic
#867C27 #B6A734 #CFC258 #DDD388 #EAE5B7

Accessibility & contrast

On white

1.82
#CFC258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.51
#CFC258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC258
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC258#FFFFFF#000000##000000
##CFC2581.001.8211.5111.51
#FFFFFF1.821.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC4D
Deuteranopia (green-blind)
#D6C25D
Tritanopia (blue-blind)
#DDB6AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc258;
/* rgb */ color: rgb(207, 194, 88);
/* oklch */ color: oklch(80.4% 0.128 102.4);
Tailwind
colors: {
  custom: {
    50: '#e0d48b',
    500: '#cfc258',
    950: '#000000',
  },
}
SCSS
$custom: #cfc258;
$custom-light: #e0d48b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc258",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 88
  },
  "hsl": {
    "h": 53.445,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.804,
    "c": 0.12783,
    "h": 102.4
  },
  "luminance": 0.52554
}

Semantic roles & 50–950 ramp

primary
#CFC258
secondary
#3E478D
accent
#59DF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC258

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

Preview Lab → · Contrast checker → · Palette generator →

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