#C5A031#C5A031

#C5A031 is a light, vivid yellow. Relative luminance 0.372; OKLCH L 72.0% C 0.131 H 89.6°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#C5A031
RGBrgb(197, 160, 49)
HSLhsl(45, 60%, 48%)
HSVhsv(45, 75%, 77%)
CMYKcmyk(0%, 18.8%, 75.1%, 22.7%)
CIE-LABlab(67.45, 2.56, 59.47)
CIE-LCHlch(67.45, 59.52, 87.53°)
OKLaboklab(72.04% 0.001 0.1308)
OKLCHoklch(72.04% 0.131 89.6)
XYZxyz(36.1533, 37.2360, 8.1882)
Luminance0.3723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A031 #3156C5
analogous
#C55631 #C5A031 #A0C531
triadic
#C5A031 #31C5A0 #A031C5
tetradic
#C5A031 #31C556 #3156C5 #C531A0
square
#C5A031 #31C556 #3156C5 #C531A0
split-complementary
#C5A031 #31A0C5 #5631C5
monochromatic
#635019 #947825 #C5A031 #D7B85D #E3CD8E

Accessibility & contrast

On white

2.49
#C5A031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#C5A031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A031
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A031#FFFFFF#000000##000000
##C5A0311.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1E
Deuteranopia (green-blind)
#BCA937
Tritanopia (blue-blind)
#D5928A
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c5a031;
/* rgb */ color: rgb(197, 160, 49);
/* oklch */ color: oklch(72.0% 0.131 89.6);
Tailwind
colors: {
  custom: {
    50: '#dbbb71',
    500: '#c5a031',
    950: '#000000',
  },
}
SCSS
$custom: #c5a031;
$custom-light: #dbbb71;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a031",
  "rgb": {
    "r": 197,
    "g": 160,
    "b": 49
  },
  "hsl": {
    "h": 45,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.72043,
    "c": 0.13078,
    "h": 89.6
  },
  "luminance": 0.37234
}

Semantic roles & 50–950 ramp

primary
#C5A031
secondary
#8597CD
accent
#6CE344
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161108
muted
#84807B

Preview Lab

Preview with #C5A031

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

Preview Lab → · Contrast checker → · Palette generator →

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