#CBC04F#CBC04F

#CBC04F is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.5% C 0.134 H 103.8°. Best body text is #000000 at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#CBC04F
RGBrgb(203, 192, 79)
HSLhsl(55, 54%, 55%)
HSVhsv(55, 61%, 80%)
CMYKcmyk(0%, 5.4%, 61.1%, 20.4%)
CIE-LABlab(76.66, -10.00, 56.76)
CIE-LCHlch(76.66, 57.64, 99.99°)
OKLaboklab(79.53% -0.0318 0.1299)
OKLCHoklch(79.53% 0.134 103.8)
XYZxyz(44.8911, 50.9619, 14.8676)
Luminance0.5096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC04F #4F5ACB
analogous
#CB824F #CBC04F #98CB4F
triadic
#CBC04F #4FCBC0 #C04FCB
tetradic
#CBC04F #4FCB82 #4F5ACB #CB4F98
square
#CBC04F #4FCB82 #4F5ACB #CB4F98
split-complementary
#CBC04F #4F98CB #824FCB
monochromatic
#7B7324 #AAA032 #CBC04F #D9D17E #E7E2AD

Accessibility & contrast

On white

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

On black

11.19
#CBC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC04F
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC04F#FFFFFF#000000##000000
##CBC04F1.001.8811.1911.19
#FFFFFF1.881.0021.0021.00
#00000011.1921.001.001.00
##00000011.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA42
Deuteranopia (green-blind)
#D4C055
Tritanopia (blue-blind)
#D9B4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cbc04f;
/* rgb */ color: rgb(203, 192, 79);
/* oklch */ color: oklch(79.5% 0.134 103.8);
Tailwind
colors: {
  custom: {
    50: '#ded285',
    500: '#cbc04f',
    950: '#000000',
  },
}
SCSS
$custom: #cbc04f;
$custom-light: #ded285;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc04f",
  "rgb": {
    "r": 203,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 54.677,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.79532,
    "c": 0.13376,
    "h": 103.8
  },
  "luminance": 0.5096
}

Semantic roles & 50–950 ramp

primary
#CBC04F
secondary
#3B4183
accent
#57DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CBC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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