#C8B940#C8B940

#C8B940 is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.6% C 0.139 H 102.2°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#C8B940
RGBrgb(200, 185, 64)
HSLhsl(53, 55%, 52%)
HSVhsv(53, 68%, 78%)
CMYKcmyk(0%, 7.5%, 68%, 21.6%)
CIE-LABlab(74.41, -8.58, 60.61)
CIE-LCHlch(74.41, 61.21, 98.06°)
OKLaboklab(77.65% -0.0293 0.1359)
OKLCHoklch(77.65% 0.139 102.2)
XYZxyz(42.0956, 47.3492, 11.7714)
Luminance0.4735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8B940 #404FC8
analogous
#C87540 #C8B940 #93C840
triadic
#C8B940 #40C8B9 #B940C8
tetradic
#C8B940 #40C875 #404FC8 #C84093
square
#C8B940 #40C875 #404FC8 #C84093
split-complementary
#C8B940 #4093C8 #7540C8
monochromatic
#6E6520 #9D912D #C8B940 #D6CA70 #E3DC9F

Accessibility & contrast

On white

2.01
#C8B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#C8B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8B940
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8B940#FFFFFF#000000##000000
##C8B9401.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB32F
Deuteranopia (green-blind)
#CEBA47
Tritanopia (blue-blind)
#D7ACA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c8b940;
/* rgb */ color: rgb(200, 185, 64);
/* oklch */ color: oklch(77.6% 0.139 102.2);
Tailwind
colors: {
  custom: {
    50: '#dccd7c',
    500: '#c8b940',
    950: '#000000',
  },
}
SCSS
$custom: #c8b940;
$custom-light: #dccd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#c8b940",
  "rgb": {
    "r": 200,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 53.382,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.77648,
    "c": 0.13897,
    "h": 102.2
  },
  "luminance": 0.47347
}

Semantic roles & 50–950 ramp

primary
#C8B940
secondary
#949BD0
accent
#5ADF49
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#15130A
muted
#84827C

Preview Lab

Preview with #C8B940

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

Preview Lab → · Contrast checker → · Palette generator →

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