#C5AB38#C5AB38

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

Color values

HEX#C5AB38
RGBrgb(197, 171, 56)
HSLhsl(49, 56%, 50%)
HSVhsv(49, 72%, 77%)
CMYKcmyk(0%, 13.2%, 71.6%, 22.7%)
CIE-LABlab(70.37, -2.98, 59.62)
CIE-LCHlch(70.37, 59.70, 92.86°)
OKLaboklab(74.36% -0.014 0.1325)
OKLCHoklch(74.36% 0.133 96.1)
XYZxyz(38.3046, 41.2837, 9.6916)
Luminance0.4128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AB38 #3852C5
analogous
#C56538 #C5AB38 #99C538
triadic
#C5AB38 #38C5AB #AB38C5
tetradic
#C5AB38 #38C565 #3852C5 #C53899
square
#C5AB38 #38C565 #3852C5 #C53899
split-complementary
#C5AB38 #3899C5 #6538C5
monochromatic
#66581D #95822A #C5AB38 #D4C067 #E1D396

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C5AB38#FFFFFF#000000##000000
##C5AB381.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)
#BCA727
Deuteranopia (green-blind)
#C3B03F
Tritanopia (blue-blind)
#D59E94
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c5ab38;
/* rgb */ color: rgb(197, 171, 56);
/* oklch */ color: oklch(74.4% 0.133 96.1);
Tailwind
colors: {
  custom: {
    50: '#dac376',
    500: '#c5ab38',
    950: '#000000',
  },
}
SCSS
$custom: #c5ab38;
$custom-light: #dac376;
$custom-dark: #000000;
JSON
{
  "hex": "#c5ab38",
  "rgb": {
    "r": 197,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 48.936,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.74364,
    "c": 0.1332,
    "h": 96.1
  },
  "luminance": 0.41282
}

Semantic roles & 50–950 ramp

primary
#C5AB38
secondary
#8C98CD
accent
#64DF49
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #C5AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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