#C8A840#C8A840

#C8A840 is a light, vivid yellow. Relative luminance 0.407; OKLCH L 74.1% C 0.126 H 91.7°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#C8A840
RGBrgb(200, 168, 64)
HSLhsl(46, 55%, 52%)
HSVhsv(46, 68%, 78%)
CMYKcmyk(0%, 16%, 68%, 21.6%)
CIE-LABlab(69.93, 0.34, 56.00)
CIE-LCHlch(69.93, 56.00, 89.65°)
OKLaboklab(74.1% -0.0038 0.1261)
OKLCHoklch(74.1% 0.126 91.7)
XYZxyz(38.7495, 40.6570, 10.6561)
Luminance0.4066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8A840 #4060C8
analogous
#C86440 #C8A840 #A4C840
triadic
#C8A840 #40C8A8 #A840C8
tetradic
#C8A840 #40C864 #4060C8 #C840A4
square
#C8A840 #40C864 #4060C8 #C840A4
split-complementary
#C8A840 #40A4C8 #6440C8
monochromatic
#6E5C20 #9D832D #C8A840 #D6BE70 #E3D39F

Accessibility & contrast

On white

2.30
#C8A840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#C8A840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8A840
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8A840#FFFFFF#000000##000000
##C8A8401.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA633
Deuteranopia (green-blind)
#C2AF45
Tritanopia (blue-blind)
#D89B92
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c8a840;
/* rgb */ color: rgb(200, 168, 64);
/* oklch */ color: oklch(74.1% 0.126 91.7);
Tailwind
colors: {
  custom: {
    50: '#dcc17a',
    500: '#c8a840',
    950: '#000000',
  },
}
SCSS
$custom: #c8a840;
$custom-light: #dcc17a;
$custom-dark: #000000;
JSON
{
  "hex": "#c8a840",
  "rgb": {
    "r": 200,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 45.882,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.74103,
    "c": 0.12616,
    "h": 91.7
  },
  "luminance": 0.40655
}

Semantic roles & 50–950 ramp

primary
#C8A840
secondary
#94A2D0
accent
#6CDF49
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #C8A840

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

Preview Lab → · Contrast checker → · Palette generator →

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