#C5C151#C5C151

#C5C151 is a light, vivid yellow. Relative luminance 0.506; OKLCH L 79.2% C 0.134 H 107.2°. Best body text is #000000 at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#C5C151
RGBrgb(197, 193, 81)
HSLhsl(58, 50%, 55%)
HSVhsv(58, 59%, 77%)
CMYKcmyk(0%, 2%, 58.9%, 22.7%)
CIE-LABlab(76.44, -12.88, 55.50)
CIE-LCHlch(76.44, 56.98, 103.07°)
OKLaboklab(79.24% -0.0394 0.1277)
OKLCHoklch(79.24% 0.134 107.2)
XYZxyz(43.5825, 50.6056, 15.2551)
Luminance0.5060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C151 #5155C5
analogous
#C58751 #C5C151 #8FC551
triadic
#C5C151 #51C5C1 #C151C5
tetradic
#C5C151 #51C587 #5155C5 #C5518F
square
#C5C151 #51C587 #5155C5 #C5518F
split-complementary
#C5C151 #518FC5 #8751C5
monochromatic
#757227 #A39F36 #C5C151 #D4D17F #E4E2AD

Accessibility & contrast

On white

1.89
#C5C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.12
#C5C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C151
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C151#FFFFFF#000000##000000
##C5C1511.001.8911.1211.12
#FFFFFF1.891.0021.0021.00
#00000011.1221.001.001.00
##00000011.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c5c151;
/* rgb */ color: rgb(197, 193, 81);
/* oklch */ color: oklch(79.2% 0.134 107.2);
Tailwind
colors: {
  custom: {
    50: '#d9d386',
    500: '#c5c151',
    950: '#000000',
  },
}
SCSS
$custom: #c5c151;
$custom-light: #d9d386;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c151",
  "rgb": {
    "r": 197,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 57.931,
    "s": 50,
    "l": 54.51
  },
  "oklch": {
    "l": 0.79244,
    "c": 0.13361,
    "h": 107.2
  },
  "luminance": 0.50604
}

Semantic roles & 50–950 ramp

primary
#C5C151
secondary
#3D3F7E
accent
#53DA4E
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #C5C151

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

Preview Lab → · Contrast checker → · Palette generator →

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