#C5AB3A#C5AB3A

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

Color values

HEX#C5AB3A
RGBrgb(197, 171, 58)
HSLhsl(49, 55%, 50%)
HSVhsv(49, 71%, 77%)
CMYKcmyk(0%, 13.2%, 70.6%, 22.7%)
CIE-LABlab(70.39, -2.88, 58.85)
CIE-LCHlch(70.39, 58.92, 92.80°)
OKLaboklab(74.38% -0.0135 0.1312)
OKLCHoklch(74.38% 0.132 95.9)
XYZxyz(38.3545, 41.3036, 9.9543)
Luminance0.4130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AB3A #3A54C5
analogous
#C5653A #C5AB3A #9AC53A
triadic
#C5AB3A #3AC5AB #AB3AC5
tetradic
#C5AB3A #3AC565 #3A54C5 #C53A9A
square
#C5AB3A #3AC565 #3A54C5 #C53A9A
split-complementary
#C5AB3A #3A9AC5 #653AC5
monochromatic
#66591E #96822C #C5AB3A #D3BF69 #E1D399

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C5AB3A#FFFFFF#000000##000000
##C5AB3A1.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)
#BCA72A
Deuteranopia (green-blind)
#C3B040
Tritanopia (blue-blind)
#D59E94
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c5ab3a;
/* rgb */ color: rgb(197, 171, 58);
/* oklch */ color: oklch(74.4% 0.132 95.9);
Tailwind
colors: {
  custom: {
    50: '#dac377',
    500: '#c5ab3a',
    950: '#000000',
  },
}
SCSS
$custom: #c5ab3a;
$custom-light: #dac377;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ab3a",
  "rgb": {
    "r": 197,
    "g": 171,
    "b": 58
  },
  "hsl": {
    "h": 48.777,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.74379,
    "c": 0.13189,
    "h": 95.9
  },
  "luminance": 0.41302
}

Semantic roles & 50–950 ramp

primary
#C5AB3A
secondary
#8E9ACD
accent
#66DE4A
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #C5AB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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