#C5A831#C5A831

#C5A831 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.7% C 0.135 H 94.7°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#C5A831
RGBrgb(197, 168, 49)
HSLhsl(48, 60%, 48%)
HSVhsv(48, 75%, 77%)
CMYKcmyk(0%, 14.7%, 75.1%, 22.7%)
CIE-LABlab(69.54, -1.71, 61.46)
CIE-LCHlch(69.54, 61.48, 91.60°)
OKLaboklab(73.69% -0.0112 0.135)
OKLCHoklch(73.69% 0.135 94.7)
XYZxyz(37.5850, 40.0995, 8.6654)
Luminance0.4010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A831 #314EC5
analogous
#C55E31 #C5A831 #98C531
triadic
#C5A831 #31C5A8 #A831C5
tetradic
#C5A831 #31C55E #314EC5 #C53198
square
#C5A831 #31C55E #314EC5 #C53198
split-complementary
#C5A831 #3198C5 #5E31C5
monochromatic
#635419 #947E25 #C5A831 #D7BF5D #E3D28E

Accessibility & contrast

On white

2.33
#C5A831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#C5A831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A831
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A831#FFFFFF#000000##000000
##C5A8311.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51C
Deuteranopia (green-blind)
#C1AE38
Tritanopia (blue-blind)
#D59A91
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c5a831;
/* rgb */ color: rgb(197, 168, 49);
/* oklch */ color: oklch(73.7% 0.135 94.7);
Tailwind
colors: {
  custom: {
    50: '#dbc172',
    500: '#c5a831',
    950: '#000000',
  },
}
SCSS
$custom: #c5a831;
$custom-light: #dbc172;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a831",
  "rgb": {
    "r": 197,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 48.243,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.7369,
    "c": 0.13547,
    "h": 94.7
  },
  "luminance": 0.40097
}

Semantic roles & 50–950 ramp

primary
#C5A831
secondary
#8593CD
accent
#64E344
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C5A831

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

Preview Lab → · Contrast checker → · Palette generator →

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