#C8A842#C8A842

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

Color values

HEX#C8A842
RGBrgb(200, 168, 66)
HSLhsl(46, 55%, 52%)
HSVhsv(46, 67%, 78%)
CMYKcmyk(0%, 16%, 67%, 21.6%)
CIE-LABlab(69.95, 0.45, 55.15)
CIE-LCHlch(69.95, 55.16, 89.53°)
OKLaboklab(74.12% -0.0032 0.1247)
OKLCHoklch(74.12% 0.125 91.5)
XYZxyz(38.8074, 40.6802, 10.9612)
Luminance0.4068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8A842 #4262C8
analogous
#C86542 #C8A842 #A5C842
triadic
#C8A842 #42C8A8 #A842C8
tetradic
#C8A842 #42C865 #4262C8 #C842A5
square
#C8A842 #42C865 #4262C8 #C842A5
split-complementary
#C8A842 #42A5C8 #6542C8
monochromatic
#6F5C20 #9F842E #C8A842 #D6BE71 #E4D4A1

Accessibility & contrast

On white

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

On black

9.14
#C8A842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8A842
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8A842#FFFFFF#000000##000000
##C8A8421.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA635
Deuteranopia (green-blind)
#C2AF47
Tritanopia (blue-blind)
#D89B93
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c8a842;
/* rgb */ color: rgb(200, 168, 66);
/* oklch */ color: oklch(74.1% 0.125 91.5);
Tailwind
colors: {
  custom: {
    50: '#dcc17b',
    500: '#c8a842',
    950: '#000000',
  },
}
SCSS
$custom: #c8a842;
$custom-light: #dcc17b;
$custom-dark: #000000;
JSON
{
  "hex": "#c8a842",
  "rgb": {
    "r": 200,
    "g": 168,
    "b": 66
  },
  "hsl": {
    "h": 45.672,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.74121,
    "c": 0.12469,
    "h": 91.5
  },
  "luminance": 0.40678
}

Semantic roles & 50–950 ramp

primary
#C8A842
secondary
#96A4D0
accent
#6DDE4A
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #C8A842

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

Preview Lab → · Contrast checker → · Palette generator →

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