#CBC945#CBC945

#CBC945 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.150 H 108.5°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#CBC945
RGBrgb(203, 201, 69)
HSLhsl(59, 56%, 53%)
HSVhsv(59, 66%, 80%)
CMYKcmyk(0%, 1%, 66%, 20.4%)
CIE-LABlab(78.98, -15.18, 63.37)
CIE-LCHlch(78.98, 65.16, 103.47°)
OKLaboklab(81.36% -0.0476 0.1424)
OKLCHoklch(81.36% 0.15 108.5)
XYZxyz(46.5910, 54.9009, 13.7717)
Luminance0.5490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC945 #4547CB
analogous
#CB8645 #CBC945 #8ACB45
triadic
#CBC945 #45CBC9 #C945CB
tetradic
#CBC945 #45CB86 #4547CB #CB458A
square
#CBC945 #45CB86 #4547CB #CB458A
split-complementary
#CBC945 #458ACB #8645CB
monochromatic
#757421 #A5A32E #CBC945 #D8D775 #E6E5A5

Accessibility & contrast

On white

1.75
#CBC945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#CBC945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC945
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC945#FFFFFF#000000##000000
##CBC9451.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C132
Deuteranopia (green-blind)
#DBC64E
Tritanopia (blue-blind)
#D9BCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cbc945;
/* rgb */ color: rgb(203, 201, 69);
/* oklch */ color: oklch(81.4% 0.150 108.5);
Tailwind
colors: {
  custom: {
    50: '#ded980',
    500: '#cbc945',
    950: '#000000',
  },
}
SCSS
$custom: #cbc945;
$custom-light: #ded980;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc945",
  "rgb": {
    "r": 203,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 59.104,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.8136,
    "c": 0.15014,
    "h": 108.5
  },
  "luminance": 0.54899
}

Semantic roles & 50–950 ramp

primary
#CBC945
secondary
#37387E
accent
#4AE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CBC945

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

Preview Lab → · Contrast checker → · Palette generator →

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