#C5A540#C5A540

#C5A540 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 73.2% C 0.124 H 91.3°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#C5A540
RGBrgb(197, 165, 64)
HSLhsl(46, 53%, 51%)
HSVhsv(46, 68%, 77%)
CMYKcmyk(0%, 16.2%, 67.5%, 22.7%)
CIE-LABlab(68.86, 0.64, 54.78)
CIE-LCHlch(68.86, 54.79, 89.33°)
OKLaboklab(73.19% -0.0028 0.1236)
OKLCHoklch(73.19% 0.124 91.3)
XYZxyz(37.4084, 39.1529, 10.4364)
Luminance0.3915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A540 #4060C5
analogous
#C56240 #C5A540 #A2C540
triadic
#C5A540 #40C5A5 #A540C5
tetradic
#C5A540 #40C562 #4060C5 #C540A2
square
#C5A540 #40C562 #4060C5 #C540A2
split-complementary
#C5A540 #40A2C5 #6240C5
monochromatic
#6A5920 #99802F #C5A540 #D3BB6F #E2D19E

Accessibility & contrast

On white

2.38
#C5A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#C5A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A540
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A540#FFFFFF#000000##000000
##C5A5401.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A333
Deuteranopia (green-blind)
#BEAC45
Tritanopia (blue-blind)
#D59890
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c5a540;
/* rgb */ color: rgb(197, 165, 64);
/* oklch */ color: oklch(73.2% 0.124 91.3);
Tailwind
colors: {
  custom: {
    50: '#dabf7a',
    500: '#c5a540',
    950: '#000000',
  },
}
SCSS
$custom: #c5a540;
$custom-light: #dabf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a540",
  "rgb": {
    "r": 197,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 45.564,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.73188,
    "c": 0.12366,
    "h": 91.3
  },
  "luminance": 0.39151
}

Semantic roles & 50–950 ramp

primary
#C5A540
secondary
#93A1CE
accent
#6EDD4B
background
#FDFBF7
surface
#FBF6EE
border
#D4D0C9
text
#151209
muted
#83817B

Preview Lab

Preview with #C5A540

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

Preview Lab → · Contrast checker → · Palette generator →

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