#CFC251#CFC251

#CFC251 is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.3% C 0.134 H 102.8°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#CFC251
RGBrgb(207, 194, 81)
HSLhsl(54, 57%, 56%)
HSVhsv(54, 61%, 81%)
CMYKcmyk(0%, 6.3%, 60.9%, 18.8%)
CIE-LABlab(77.55, -9.20, 56.96)
CIE-LCHlch(77.55, 57.70, 99.18°)
OKLaboklab(80.33% -0.0296 0.1305)
OKLCHoklch(80.33% 0.134 102.8)
XYZxyz(46.5108, 52.4448, 15.4559)
Luminance0.5244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC251 #515ECF
analogous
#CF8351 #CFC251 #9DCF51
triadic
#CFC251 #51CFC2 #C251CF
tetradic
#CFC251 #51CF83 #515ECF #CF519D
square
#CFC251 #51CF83 #515ECF #CF519D
split-complementary
#CFC251 #519DCF #8351CF
monochromatic
#827824 #B2A431 #CFC251 #DCD381 #E9E4B1

Accessibility & contrast

On white

1.83
#CFC251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#CFC251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC251
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC251#FFFFFF#000000##000000
##CFC2511.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D6C257
Tritanopia (blue-blind)
#DEB6AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc251;
/* rgb */ color: rgb(207, 194, 81);
/* oklch */ color: oklch(80.3% 0.134 102.8);
Tailwind
colors: {
  custom: {
    50: '#e1d486',
    500: '#cfc251',
    950: '#000000',
  },
}
SCSS
$custom: #cfc251;
$custom-light: #e1d486;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc251",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 53.81,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80327,
    "c": 0.13382,
    "h": 102.8
  },
  "luminance": 0.52443
}

Semantic roles & 50–950 ramp

primary
#CFC251
secondary
#3B4389
accent
#57E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC251

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

Preview Lab → · Contrast checker → · Palette generator →

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