#C5AB2A#C5AB2A

#C5AB2A is a light, vivid yellow. Relative luminance 0.412; OKLCH L 74.3% C 0.141 H 97.0°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#C5AB2A
RGBrgb(197, 171, 42)
HSLhsl(50, 65%, 47%)
HSVhsv(50, 79%, 77%)
CMYKcmyk(0%, 13.2%, 78.7%, 22.7%)
CIE-LABlab(70.29, -3.58, 64.55)
CIE-LCHlch(70.29, 64.65, 93.17°)
OKLaboklab(74.27% -0.0172 0.1402)
OKLCHoklch(74.27% 0.141 97)
XYZxyz(38.0088, 41.1654, 8.1337)
Luminance0.4116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AB2A #2A44C5
analogous
#C55D2A #C5AB2A #92C52A
triadic
#C5AB2A #2AC5AB #AB2AC5
tetradic
#C5AB2A #2AC55D #2A44C5 #C52A92
square
#C5AB2A #2AC55D #2A44C5 #C52A92
split-complementary
#C5AB2A #2A92C5 #5D2AC5
monochromatic
#605314 #937F1F #C5AB2A #DAC352 #E5D585

Accessibility & contrast

On white

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

On black

9.23
#C5AB2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5AB2A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5AB2A#FFFFFF#000000##000000
##C5AB2A1.002.279.239.23
#FFFFFF2.271.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA709
Deuteranopia (green-blind)
#C4AF33
Tritanopia (blue-blind)
#D59D93
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c5ab2a;
/* rgb */ color: rgb(197, 171, 42);
/* oklch */ color: oklch(74.3% 0.141 97.0);
Tailwind
colors: {
  custom: {
    50: '#dbc36f',
    500: '#c5ab2a',
    950: '#000000',
  },
}
SCSS
$custom: #c5ab2a;
$custom-light: #dbc36f;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ab2a",
  "rgb": {
    "r": 197,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 49.935,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.74272,
    "c": 0.14127,
    "h": 97
  },
  "luminance": 0.41163
}

Semantic roles & 50–950 ramp

primary
#C5AB2A
secondary
#7D8ACE
accent
#5CE840
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C5AB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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