#C8AB40#C8AB40

#C8AB40 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.7% C 0.128 H 93.8°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#C8AB40
RGBrgb(200, 171, 64)
HSLhsl(47, 55%, 52%)
HSVhsv(47, 68%, 78%)
CMYKcmyk(0%, 14.5%, 68%, 21.6%)
CIE-LABlab(70.72, -1.25, 56.81)
CIE-LCHlch(70.72, 56.82, 91.27°)
OKLaboklab(74.72% -0.0084 0.1278)
OKLCHoklch(74.72% 0.128 93.8)
XYZxyz(39.3097, 41.7775, 10.8428)
Luminance0.4178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8AB40 #405DC8
analogous
#C86740 #C8AB40 #A1C840
triadic
#C8AB40 #40C8AB #AB40C8
tetradic
#C8AB40 #40C867 #405DC8 #C840A1
square
#C8AB40 #40C867 #405DC8 #C840A1
split-complementary
#C8AB40 #40A1C8 #6740C8
monochromatic
#6E5D20 #9D862D #C8AB40 #D6C070 #E3D59F

Accessibility & contrast

On white

2.24
#C8AB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#C8AB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8AB40
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8AB40#FFFFFF#000000##000000
##C8AB401.002.249.359.35
#FFFFFF2.241.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA832
Deuteranopia (green-blind)
#C4B145
Tritanopia (blue-blind)
#D89E95
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #c8ab40;
/* rgb */ color: rgb(200, 171, 64);
/* oklch */ color: oklch(74.7% 0.128 93.8);
Tailwind
colors: {
  custom: {
    50: '#dcc37a',
    500: '#c8ab40',
    950: '#000000',
  },
}
SCSS
$custom: #c8ab40;
$custom-light: #dcc37a;
$custom-dark: #000000;
JSON
{
  "hex": "#c8ab40",
  "rgb": {
    "r": 200,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 47.206,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.7472,
    "c": 0.1281,
    "h": 93.8
  },
  "luminance": 0.41775
}

Semantic roles & 50–950 ramp

primary
#C8AB40
secondary
#94A1D0
accent
#69DF49
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #C8AB40

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

Preview Lab → · Contrast checker → · Palette generator →

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