#CCA83B#CCA83B

#CCA83B is a light, vivid yellow. Relative luminance 0.412; OKLCH L 74.5% C 0.131 H 90.2°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#CCA83B
RGBrgb(204, 168, 59)
HSLhsl(45, 59%, 52%)
HSVhsv(45, 71%, 80%)
CMYKcmyk(0%, 17.6%, 71.1%, 20%)
CIE-LABlab(70.29, 1.81, 58.57)
CIE-LCHlch(70.29, 58.59, 88.23°)
OKLaboklab(74.46% -0.0004 0.1305)
OKLCHoklch(74.46% 0.131 90.2)
XYZxyz(39.6961, 41.1608, 9.9908)
Luminance0.4116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA83B #3B5FCC
analogous
#CC603B #CCA83B #A8CC3B
triadic
#CCA83B #3BCCA8 #A83BCC
tetradic
#CCA83B #3BCC60 #3B5FCC #CC3BA8
square
#CCA83B #3BCC60 #3B5FCC #CC3BA8
split-complementary
#CCA83B #3BA8CC #603BCC
monochromatic
#705B1D #A0832A #CCA83B #D9BE6C #E5D39C

Accessibility & contrast

On white

2.27
#CCA83B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#CCA83B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA83B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA83B#FFFFFF#000000##000000
##CCA83B1.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA62C
Deuteranopia (green-blind)
#C3B040
Tritanopia (blue-blind)
#DD9A92
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cca83b;
/* rgb */ color: rgb(204, 168, 59);
/* oklch */ color: oklch(74.5% 0.131 90.2);
Tailwind
colors: {
  custom: {
    50: '#e0c177',
    500: '#cca83b',
    950: '#000000',
  },
}
SCSS
$custom: #cca83b;
$custom-light: #e0c177;
$custom-dark: #000000;
JSON
{
  "hex": "#cca83b",
  "rgb": {
    "r": 204,
    "g": 168,
    "b": 59
  },
  "hsl": {
    "h": 45.103,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.7446,
    "c": 0.13051,
    "h": 90.2
  },
  "luminance": 0.41158
}

Semantic roles & 50–950 ramp

primary
#CCA83B
secondary
#92A1D1
accent
#6DE246
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CCA83B

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

Preview Lab → · Contrast checker → · Palette generator →

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