#C8C151#C8C151

#C8C151 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.5% C 0.133 H 105.7°. Best body text is #000000 at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#C8C151
RGBrgb(200, 193, 81)
HSLhsl(56, 52%, 55%)
HSVhsv(56, 60%, 78%)
CMYKcmyk(0%, 3.5%, 59.5%, 21.6%)
CIE-LABlab(76.69, -11.63, 55.85)
CIE-LCHlch(76.69, 57.04, 101.76°)
OKLaboklab(79.5% -0.0361 0.1283)
OKLCHoklch(79.5% 0.133 105.7)
XYZxyz(44.3761, 51.0148, 15.2923)
Luminance0.5101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8C151 #5158C8
analogous
#C88651 #C8C151 #93C851
triadic
#C8C151 #51C8C1 #C151C8
tetradic
#C8C151 #51C886 #5158C8 #C85193
square
#C8C151 #51C886 #5158C8 #C85193
split-complementary
#C8C151 #5193C8 #8651C8
monochromatic
#797426 #A7A035 #C8C151 #D7D280 #E5E2AE

Accessibility & contrast

On white

1.87
#C8C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.20
#C8C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8C151
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8C151#FFFFFF#000000##000000
##C8C1511.001.8711.2011.20
#FFFFFF1.871.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA45
Deuteranopia (green-blind)
#D3C057
Tritanopia (blue-blind)
#D6B5A9
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c8c151;
/* rgb */ color: rgb(200, 193, 81);
/* oklch */ color: oklch(79.5% 0.133 105.7);
Tailwind
colors: {
  custom: {
    50: '#dbd386',
    500: '#c8c151',
    950: '#000000',
  },
}
SCSS
$custom: #c8c151;
$custom-light: #dbd386;
$custom-dark: #000000;
JSON
{
  "hex": "#c8c151",
  "rgb": {
    "r": 200,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 56.471,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.79502,
    "c": 0.13329,
    "h": 105.7
  },
  "luminance": 0.51013
}

Semantic roles & 50–950 ramp

primary
#C8C151
secondary
#3C4081
accent
#55DB4C
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #C8C151

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

Preview Lab → · Contrast checker → · Palette generator →

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