#CBB942#CBB942

#CBB942 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 77.9% C 0.138 H 100.6°. Best body text is #000000 at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#CBB942
RGBrgb(203, 185, 66)
HSLhsl(52, 57%, 53%)
HSVhsv(52, 67%, 80%)
CMYKcmyk(0%, 8.9%, 67.5%, 20.4%)
CIE-LABlab(74.69, -7.19, 60.17)
CIE-LCHlch(74.69, 60.60, 96.81°)
OKLaboklab(77.94% -0.0253 0.1352)
OKLCHoklch(77.94% 0.138 100.6)
XYZxyz(42.9628, 47.7897, 12.1145)
Luminance0.4779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBB942 #4254CB
analogous
#CB7542 #CBB942 #98CB42
triadic
#CBB942 #42CBB9 #B942CB
tetradic
#CBB942 #42CB75 #4254CB #CB4298
square
#CBB942 #42CB75 #4254CB #CB4298
split-complementary
#CBB942 #4298CB #7542CB
monochromatic
#736820 #A3932D #CBB942 #D8CB72 #E5DDA2

Accessibility & contrast

On white

1.99
#CBB942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.56
#CBB942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBB942
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBB942#FFFFFF#000000##000000
##CBB9421.001.9910.5610.56
#FFFFFF1.991.0021.0021.00
#00000010.5621.001.001.00
##00000010.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB432
Deuteranopia (green-blind)
#CFBB49
Tritanopia (blue-blind)
#DAACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cbb942;
/* rgb */ color: rgb(203, 185, 66);
/* oklch */ color: oklch(77.9% 0.138 100.6);
Tailwind
colors: {
  custom: {
    50: '#decd7d',
    500: '#cbb942',
    950: '#000000',
  },
}
SCSS
$custom: #cbb942;
$custom-light: #decd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbb942",
  "rgb": {
    "r": 203,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 52.117,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77938,
    "c": 0.13751,
    "h": 100.6
  },
  "luminance": 0.47788
}

Semantic roles & 50–950 ramp

primary
#CBB942
secondary
#979FD2
accent
#5CE048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CBB942

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

Preview Lab → · Contrast checker → · Palette generator →

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