#C5B951#C5B951

#C5B951 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.5% C 0.126 H 102.8°. Best body text is #000000 at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#C5B951
RGBrgb(197, 185, 81)
HSLhsl(54, 50%, 55%)
HSVhsv(54, 59%, 77%)
CMYKcmyk(0%, 6.1%, 58.9%, 22.7%)
CIE-LABlab(74.29, -8.78, 53.12)
CIE-LCHlch(74.29, 53.84, 99.39°)
OKLaboklab(77.54% -0.0278 0.1226)
OKLCHoklch(77.54% 0.126 102.8)
XYZxyz(41.8616, 47.1639, 14.6814)
Luminance0.4716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B951 #515DC5
analogous
#C57F51 #C5B951 #97C551
triadic
#C5B951 #51C5B9 #B951C5
tetradic
#C5B951 #51C57F #515DC5 #C55197
square
#C5B951 #51C57F #515DC5 #C55197
split-complementary
#C5B951 #5197C5 #7F51C5
monochromatic
#756D27 #A39736 #C5B951 #D4CB7F #E4DEAD

Accessibility & contrast

On white

2.01
#C5B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.43
#C5B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B951
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B951#FFFFFF#000000##000000
##C5B9511.002.0110.4310.43
#FFFFFF2.011.0021.0021.00
#00000010.4321.001.001.00
##00000010.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B346
Deuteranopia (green-blind)
#CCB956
Tritanopia (blue-blind)
#D3ADA2
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c5b951;
/* rgb */ color: rgb(197, 185, 81);
/* oklch */ color: oklch(77.5% 0.126 102.8);
Tailwind
colors: {
  custom: {
    50: '#d9cd86',
    500: '#c5b951',
    950: '#000000',
  },
}
SCSS
$custom: #c5b951;
$custom-light: #d9cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b951",
  "rgb": {
    "r": 197,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 53.793,
    "s": 50,
    "l": 54.51
  },
  "oklch": {
    "l": 0.77538,
    "c": 0.12568,
    "h": 102.8
  },
  "luminance": 0.47162
}

Semantic roles & 50–950 ramp

primary
#C5B951
secondary
#A0A5D1
accent
#5DDA4E
background
#FDFCF8
surface
#FBF9F0
border
#D4D2CB
text
#15130B
muted
#83827C

Preview Lab

Preview with #C5B951

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

Preview Lab → · Contrast checker → · Palette generator →

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