#CFC04B#CFC04B

#CFC04B is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.137 H 102.0°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CFC04B
RGBrgb(207, 192, 75)
HSLhsl(53, 58%, 55%)
HSVhsv(53, 64%, 81%)
CMYKcmyk(0%, 7.2%, 63.8%, 18.8%)
CIE-LABlab(76.97, -8.57, 58.92)
CIE-LCHlch(76.97, 59.54, 98.27°)
OKLaboklab(79.85% -0.0284 0.1338)
OKLCHoklch(79.85% 0.137 102)
XYZxyz(45.8536, 51.4745, 14.1755)
Luminance0.5147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC04B #4B5ACF
analogous
#CF7E4B #CFC04B #9CCF4B
triadic
#CFC04B #4BCFC0 #C04BCF
tetradic
#CFC04B #4BCF7E #4B5ACF #CF4B9C
square
#CFC04B #4BCF7E #4B5ACF #CF4B9C
split-complementary
#CFC04B #4B9CCF #7E4BCF
monochromatic
#7E7422 #AEA02E #CFC04B #DCD17B #E9E2AC

Accessibility & contrast

On white

1.86
#CFC04B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#CFC04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC04B
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC04B#FFFFFF#000000##000000
##CFC04B1.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA3D
Deuteranopia (green-blind)
#D5C152
Tritanopia (blue-blind)
#DEB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc04b;
/* rgb */ color: rgb(207, 192, 75);
/* oklch */ color: oklch(79.8% 0.137 102.0);
Tailwind
colors: {
  custom: {
    50: '#e1d283',
    500: '#cfc04b',
    950: '#000000',
  },
}
SCSS
$custom: #cfc04b;
$custom-light: #e1d283;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc04b",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 75
  },
  "hsl": {
    "h": 53.182,
    "s": 57.895,
    "l": 55.294
  },
  "oklch": {
    "l": 0.79849,
    "c": 0.13681,
    "h": 102
  },
  "luminance": 0.51473
}

Semantic roles & 50–950 ramp

primary
#CFC04B
secondary
#394186
accent
#58E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC04B

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

Preview Lab → · Contrast checker → · Palette generator →

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