#C5AB3B#C5AB3B

#C5AB3B is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.4% C 0.131 H 95.8°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#C5AB3B
RGBrgb(197, 171, 59)
HSLhsl(49, 54%, 50%)
HSVhsv(49, 70%, 77%)
CMYKcmyk(0%, 13.2%, 70.1%, 22.7%)
CIE-LABlab(70.40, -2.83, 58.45)
CIE-LCHlch(70.40, 58.52, 92.77°)
OKLaboklab(74.39% -0.0133 0.1305)
OKLCHoklch(74.39% 0.131 95.8)
XYZxyz(38.3802, 41.3139, 10.0896)
Luminance0.4131 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AB3B #3B55C5
analogous
#C5663B #C5AB3B #9AC53B
triadic
#C5AB3B #3BC5AB #AB3BC5
tetradic
#C5AB3B #3BC566 #3B55C5 #C53B9A
square
#C5AB3B #3BC566 #3B55C5 #C53B9A
split-complementary
#C5AB3B #3B9AC5 #663BC5
monochromatic
#67591F #96822C #C5AB3B #D3BF6A #E1D399

Accessibility & contrast

On white

2.27
#C5AB3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#C5AB3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5AB3B
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5AB3B#FFFFFF#000000##000000
##C5AB3B1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA72B
Deuteranopia (green-blind)
#C3B041
Tritanopia (blue-blind)
#D59E94
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c5ab3b;
/* rgb */ color: rgb(197, 171, 59);
/* oklch */ color: oklch(74.4% 0.131 95.8);
Tailwind
colors: {
  custom: {
    50: '#dac377',
    500: '#c5ab3b',
    950: '#000000',
  },
}
SCSS
$custom: #c5ab3b;
$custom-light: #dac377;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ab3b",
  "rgb": {
    "r": 197,
    "g": 171,
    "b": 59
  },
  "hsl": {
    "h": 48.696,
    "s": 54.331,
    "l": 50.196
  },
  "oklch": {
    "l": 0.74387,
    "c": 0.1312,
    "h": 95.8
  },
  "luminance": 0.41312
}

Semantic roles & 50–950 ramp

primary
#C5AB3B
secondary
#8F9BCD
accent
#66DE4A
background
#FDFBF7
surface
#FBF7EE
border
#D4D0C9
text
#151209
muted
#83817B

Preview Lab

Preview with #C5AB3B

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

Preview Lab → · Contrast checker → · Palette generator →

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