#CFBC42#CFBC42

#CFBC42 is a light, vivid yellow. Relative luminance 0.496; OKLCH L 78.9% C 0.140 H 100.3°. Best body text is #000000 at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#CFBC42
RGBrgb(207, 188, 66)
HSLhsl(52, 59%, 54%)
HSVhsv(52, 68%, 81%)
CMYKcmyk(0%, 9.2%, 68.1%, 18.8%)
CIE-LABlab(75.84, -7.03, 61.46)
CIE-LCHlch(75.84, 61.86, 96.52°)
OKLaboklab(78.93% -0.0251 0.1378)
OKLCHoklch(78.93% 0.14 100.3)
XYZxyz(44.7007, 49.6272, 12.3776)
Luminance0.4963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFBC42 #4255CF
analogous
#CF7542 #CFBC42 #9BCF42
triadic
#CFBC42 #42CFBC #BC42CF
tetradic
#CFBC42 #42CF75 #4255CF #CF429B
square
#CFBC42 #42CF75 #4255CF #CF429B
split-complementary
#CFBC42 #429BCF #7542CF
monochromatic
#786C1F #A9982B #CFBC42 #DBCD73 #E8DFA4

Accessibility & contrast

On white

1.92
#CFBC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.93
#CFBC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFBC42
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFBC42#FFFFFF#000000##000000
##CFBC421.001.9210.9310.93
#FFFFFF1.921.0021.0021.00
#00000010.9321.001.001.00
##00000010.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB731
Deuteranopia (green-blind)
#D3BE49
Tritanopia (blue-blind)
#DFAFA3
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #cfbc42;
/* rgb */ color: rgb(207, 188, 66);
/* oklch */ color: oklch(78.9% 0.140 100.3);
Tailwind
colors: {
  custom: {
    50: '#e1cf7d',
    500: '#cfbc42',
    950: '#000000',
  },
}
SCSS
$custom: #cfbc42;
$custom-light: #e1cf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfbc42",
  "rgb": {
    "r": 207,
    "g": 188,
    "b": 66
  },
  "hsl": {
    "h": 51.915,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.78933,
    "c": 0.14002,
    "h": 100.3
  },
  "luminance": 0.49625
}

Semantic roles & 50–950 ramp

primary
#CFBC42
secondary
#98A0D5
accent
#5AE345
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFBC42

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

Preview Lab → · Contrast checker → · Palette generator →

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