#C8AB31#C8AB31

#C8AB31 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.6% C 0.138 H 95.1°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#C8AB31
RGBrgb(200, 171, 49)
HSLhsl(48, 61%, 49%)
HSVhsv(48, 76%, 78%)
CMYKcmyk(0%, 14.5%, 75.5%, 21.6%)
CIE-LABlab(70.61, -1.99, 62.57)
CIE-LCHlch(70.61, 62.60, 91.82°)
OKLaboklab(74.61% -0.0121 0.1373)
OKLCHoklch(74.61% 0.138 95.1)
XYZxyz(38.9388, 41.6291, 8.8894)
Luminance0.4163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8AB31 #314EC8
analogous
#C86031 #C8AB31 #9AC831
triadic
#C8AB31 #31C8AB #AB31C8
tetradic
#C8AB31 #31C860 #314EC8 #C8319A
square
#C8AB31 #31C860 #314EC8 #C8319A
split-complementary
#C8AB31 #319AC8 #6031C8
monochromatic
#665719 #978125 #C8AB31 #D8C05F #E4D490

Accessibility & contrast

On white

2.25
#C8AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#C8AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8AB31
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8AB31#FFFFFF#000000##000000
##C8AB311.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA81A
Deuteranopia (green-blind)
#C5B139
Tritanopia (blue-blind)
#D89D93
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #c8ab31;
/* rgb */ color: rgb(200, 171, 49);
/* oklch */ color: oklch(74.6% 0.138 95.1);
Tailwind
colors: {
  custom: {
    50: '#ddc372',
    500: '#c8ab31',
    950: '#000000',
  },
}
SCSS
$custom: #c8ab31;
$custom-light: #ddc372;
$custom-dark: #000000;
JSON
{
  "hex": "#c8ab31",
  "rgb": {
    "r": 200,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 48.477,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74606,
    "c": 0.1378,
    "h": 95.1
  },
  "luminance": 0.41627
}

Semantic roles & 50–950 ramp

primary
#C8AB31
secondary
#8694CE
accent
#63E444
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C8AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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