#CFC151#CFC151

#CFC151 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.133 H 102.2°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#CFC151
RGBrgb(207, 193, 81)
HSLhsl(53, 57%, 56%)
HSVhsv(53, 61%, 81%)
CMYKcmyk(0%, 6.8%, 60.9%, 18.8%)
CIE-LABlab(77.28, -8.69, 56.67)
CIE-LCHlch(77.28, 57.33, 98.72°)
OKLaboklab(80.12% -0.0281 0.1299)
OKLCHoklch(80.12% 0.133 102.2)
XYZxyz(46.2890, 52.0012, 15.3819)
Luminance0.5200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC151 #515FCF
analogous
#CF8251 #CFC151 #9ECF51
triadic
#CFC151 #51CFC1 #C151CF
tetradic
#CFC151 #51CF82 #515FCF #CF519E
square
#CFC151 #51CF82 #515FCF #CF519E
split-complementary
#CFC151 #519ECF #8251CF
monochromatic
#827724 #B2A331 #CFC151 #DCD281 #E9E3B1

Accessibility & contrast

On white

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

On black

11.40
#CFC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC151
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC151#FFFFFF#000000##000000
##CFC1511.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB44
Deuteranopia (green-blind)
#D6C257
Tritanopia (blue-blind)
#DEB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc151;
/* rgb */ color: rgb(207, 193, 81);
/* oklch */ color: oklch(80.1% 0.133 102.2);
Tailwind
colors: {
  custom: {
    50: '#e1d386',
    500: '#cfc151',
    950: '#000000',
  },
}
SCSS
$custom: #cfc151;
$custom-light: #e1d386;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc151",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 53.333,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80117,
    "c": 0.13291,
    "h": 102.2
  },
  "luminance": 0.51999
}

Semantic roles & 50–950 ramp

primary
#CFC151
secondary
#3B4489
accent
#59E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC151

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

Preview Lab → · Contrast checker → · Palette generator →

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