#C5A131#C5A131

#C5A131 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 72.2% C 0.131 H 90.2°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#C5A131
RGBrgb(197, 161, 49)
HSLhsl(45, 60%, 48%)
HSVhsv(45, 75%, 77%)
CMYKcmyk(0%, 18.3%, 75.1%, 22.7%)
CIE-LABlab(67.71, 2.02, 59.72)
CIE-LCHlch(67.71, 59.75, 88.06°)
OKLaboklab(72.25% -0.0005 0.1313)
OKLCHoklch(72.25% 0.131 90.2)
XYZxyz(36.3273, 37.5841, 8.2462)
Luminance0.3758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A131 #3155C5
analogous
#C55731 #C5A131 #9FC531
triadic
#C5A131 #31C5A1 #A131C5
tetradic
#C5A131 #31C557 #3155C5 #C5319F
square
#C5A131 #31C557 #3155C5 #C5319F
split-complementary
#C5A131 #319FC5 #5731C5
monochromatic
#635119 #947925 #C5A131 #D7B95D #E3CE8E

Accessibility & contrast

On white

2.47
#C5A131 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#C5A131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A131
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A131#FFFFFF#000000##000000
##C5A1311.002.478.528.52
#FFFFFF2.471.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F1E
Deuteranopia (green-blind)
#BCA937
Tritanopia (blue-blind)
#D5938B
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c5a131;
/* rgb */ color: rgb(197, 161, 49);
/* oklch */ color: oklch(72.2% 0.131 90.2);
Tailwind
colors: {
  custom: {
    50: '#dbbc71',
    500: '#c5a131',
    950: '#000000',
  },
}
SCSS
$custom: #c5a131;
$custom-light: #dbbc71;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a131",
  "rgb": {
    "r": 197,
    "g": 161,
    "b": 49
  },
  "hsl": {
    "h": 45.405,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.72247,
    "c": 0.13131,
    "h": 90.2
  },
  "luminance": 0.37582
}

Semantic roles & 50–950 ramp

primary
#C5A131
secondary
#8596CD
accent
#6BE344
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161108
muted
#84807B

Preview Lab

Preview with #C5A131

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

Preview Lab → · Contrast checker → · Palette generator →

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