#CFBF42#CFBF42

#CFBF42 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.6% C 0.143 H 101.9°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#CFBF42
RGBrgb(207, 191, 66)
HSLhsl(53, 59%, 54%)
HSVhsv(53, 68%, 81%)
CMYKcmyk(0%, 7.7%, 68.1%, 18.8%)
CIE-LABlab(76.63, -8.58, 62.27)
CIE-LCHlch(76.63, 62.85, 97.84°)
OKLaboklab(79.56% -0.0295 0.1395)
OKLCHoklch(79.56% 0.143 101.9)
XYZxyz(45.3482, 50.9223, 12.5935)
Luminance0.5092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFBF42 #4252CF
analogous
#CF7842 #CFBF42 #99CF42
triadic
#CFBF42 #42CFBF #BF42CF
tetradic
#CFBF42 #42CF78 #4252CF #CF4299
square
#CFBF42 #42CF78 #4252CF #CF4299
split-complementary
#CFBF42 #4299CF #7842CF
monochromatic
#786E1F #A99B2B #CFBF42 #DBD073 #E8E0A4

Accessibility & contrast

On white

1.88
#CFBF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#CFBF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFBF42
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFBF42#FFFFFF#000000##000000
##CFBF421.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B930
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#DEB2A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cfbf42;
/* rgb */ color: rgb(207, 191, 66);
/* oklch */ color: oklch(79.6% 0.143 101.9);
Tailwind
colors: {
  custom: {
    50: '#e1d27d',
    500: '#cfbf42',
    950: '#000000',
  },
}
SCSS
$custom: #cfbf42;
$custom-light: #e1d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfbf42",
  "rgb": {
    "r": 207,
    "g": 191,
    "b": 66
  },
  "hsl": {
    "h": 53.191,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.79562,
    "c": 0.14254,
    "h": 101.9
  },
  "luminance": 0.5092
}

Semantic roles & 50–950 ramp

primary
#CFBF42
secondary
#353D80
accent
#57E345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFBF42

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

Preview Lab → · Contrast checker → · Palette generator →

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