#C8B542#C8B542

#C8B542 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.8% C 0.134 H 99.8°. Best body text is #000000 at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#C8B542
RGBrgb(200, 181, 66)
HSLhsl(51, 55%, 52%)
HSVhsv(51, 67%, 78%)
CMYKcmyk(0%, 9.5%, 67%, 21.6%)
CIE-LABlab(73.36, -6.40, 58.72)
CIE-LCHlch(73.36, 59.07, 96.22°)
OKLaboklab(76.82% -0.0228 0.1322)
OKLCHoklch(76.82% 0.134 99.8)
XYZxyz(41.3285, 45.7223, 11.8016)
Luminance0.4572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8B542 #4255C8
analogous
#C87242 #C8B542 #98C842
triadic
#C8B542 #42C8B5 #B542C8
tetradic
#C8B542 #42C872 #4255C8 #C84298
square
#C8B542 #42C872 #4255C8 #C84298
split-complementary
#C8B542 #4298C8 #7242C8
monochromatic
#6F6420 #9F8F2E #C8B542 #D6C871 #E4DAA1

Accessibility & contrast

On white

2.07
#C8B542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.14
#C8B542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8B542
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8B542#FFFFFF#000000##000000
##C8B5421.002.0710.1410.14
#FFFFFF2.071.0021.0021.00
#00000010.1421.001.001.00
##00000010.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B033
Deuteranopia (green-blind)
#CBB749
Tritanopia (blue-blind)
#D7A89D
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #c8b542;
/* rgb */ color: rgb(200, 181, 66);
/* oklch */ color: oklch(76.8% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#dcca7c',
    500: '#c8b542',
    950: '#000000',
  },
}
SCSS
$custom: #c8b542;
$custom-light: #dcca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#c8b542",
  "rgb": {
    "r": 200,
    "g": 181,
    "b": 66
  },
  "hsl": {
    "h": 51.493,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.76822,
    "c": 0.13415,
    "h": 99.8
  },
  "luminance": 0.4572
}

Semantic roles & 50–950 ramp

primary
#C8B542
secondary
#969ED0
accent
#5FDE4A
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C8B542

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

Preview Lab → · Contrast checker → · Palette generator →

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