#C5B451#C5B451

#C5B451 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.5% C 0.121 H 99.7°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#C5B451
RGBrgb(197, 180, 81)
HSLhsl(51, 50%, 55%)
HSVhsv(51, 59%, 77%)
CMYKcmyk(0%, 8.6%, 58.9%, 22.7%)
CIE-LABlab(72.96, -6.18, 51.63)
CIE-LCHlch(72.96, 52.00, 96.83°)
OKLaboklab(76.48% -0.0203 0.1194)
OKLCHoklch(76.48% 0.121 99.7)
XYZxyz(40.8340, 45.1086, 14.3389)
Luminance0.4511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B451 #5162C5
analogous
#C57A51 #C5B451 #9CC551
triadic
#C5B451 #51C5B4 #B451C5
tetradic
#C5B451 #51C57A #5162C5 #C5519C
square
#C5B451 #51C57A #5162C5 #C5519C
split-complementary
#C5B451 #519CC5 #7A51C5
monochromatic
#756927 #A39336 #C5B451 #D4C87F #E4DCAD

Accessibility & contrast

On white

2.10
#C5B451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#C5B451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B451
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B451#FFFFFF#000000##000000
##C5B4511.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF47
Deuteranopia (green-blind)
#C8B656
Tritanopia (blue-blind)
#D3A89E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #c5b451;
/* rgb */ color: rgb(197, 180, 81);
/* oklch */ color: oklch(76.5% 0.121 99.7);
Tailwind
colors: {
  custom: {
    50: '#d9ca85',
    500: '#c5b451',
    950: '#000000',
  },
}
SCSS
$custom: #c5b451;
$custom-light: #d9ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b451",
  "rgb": {
    "r": 197,
    "g": 180,
    "b": 81
  },
  "hsl": {
    "h": 51.207,
    "s": 50,
    "l": 54.51
  },
  "oklch": {
    "l": 0.76482,
    "c": 0.12111,
    "h": 99.7
  },
  "luminance": 0.45107
}

Semantic roles & 50–950 ramp

primary
#C5B451
secondary
#A0A8D1
accent
#63DA4E
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #C5B451

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

Preview Lab → · Contrast checker → · Palette generator →

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