#C5A231#C5A231

#C5A231 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.5% C 0.132 H 90.9°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#C5A231
RGBrgb(197, 162, 49)
HSLhsl(46, 60%, 48%)
HSVhsv(46, 75%, 77%)
CMYKcmyk(0%, 17.8%, 75.1%, 22.7%)
CIE-LABlab(67.97, 1.49, 59.96)
CIE-LCHlch(67.97, 59.98, 88.58°)
OKLaboklab(72.45% -0.0021 0.1318)
OKLCHoklch(72.45% 0.132 90.9)
XYZxyz(36.5028, 37.9350, 8.3047)
Luminance0.3793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A231 #3154C5
analogous
#C55831 #C5A231 #9EC531
triadic
#C5A231 #31C5A2 #A231C5
tetradic
#C5A231 #31C558 #3154C5 #C5319E
square
#C5A231 #31C558 #3154C5 #C5319E
split-complementary
#C5A231 #319EC5 #5831C5
monochromatic
#635119 #947A25 #C5A231 #D7BA5D #E3CF8E

Accessibility & contrast

On white

2.45
#C5A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#C5A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A231
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A231#FFFFFF#000000##000000
##C5A2311.002.458.598.59
#FFFFFF2.451.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A01E
Deuteranopia (green-blind)
#BDAA37
Tritanopia (blue-blind)
#D5948C
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c5a231;
/* rgb */ color: rgb(197, 162, 49);
/* oklch */ color: oklch(72.5% 0.132 90.9);
Tailwind
colors: {
  custom: {
    50: '#dbbd71',
    500: '#c5a231',
    950: '#000000',
  },
}
SCSS
$custom: #c5a231;
$custom-light: #dbbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a231",
  "rgb": {
    "r": 197,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 45.811,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.72452,
    "c": 0.13186,
    "h": 90.9
  },
  "luminance": 0.37933
}

Semantic roles & 50–950 ramp

primary
#C5A231
secondary
#8596CD
accent
#6AE344
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C5A231

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

Preview Lab → · Contrast checker → · Palette generator →

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