#C5A438#C5A438

#C5A438 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.9% C 0.129 H 91.5°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#C5A438
RGBrgb(197, 164, 56)
HSLhsl(46, 56%, 50%)
HSVhsv(46, 72%, 77%)
CMYKcmyk(0%, 16.8%, 71.6%, 22.7%)
CIE-LABlab(68.54, 0.74, 57.80)
CIE-LCHlch(68.54, 57.80, 89.26°)
OKLaboklab(72.91% -0.0034 0.1286)
OKLCHoklch(72.91% 0.129 91.5)
XYZxyz(37.0172, 38.7090, 9.2624)
Luminance0.3871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A438 #3859C5
analogous
#C55D38 #C5A438 #A0C538
triadic
#C5A438 #38C5A4 #A438C5
tetradic
#C5A438 #38C55D #3859C5 #C538A0
square
#C5A438 #38C55D #3859C5 #C538A0
split-complementary
#C5A438 #38A0C5 #5D38C5
monochromatic
#66551D #957C2A #C5A438 #D4BA67 #E1D096

Accessibility & contrast

On white

2.40
#C5A438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#C5A438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A438
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A438#FFFFFF#000000##000000
##C5A4381.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A228
Deuteranopia (green-blind)
#BEAB3E
Tritanopia (blue-blind)
#D5978E
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c5a438;
/* rgb */ color: rgb(197, 164, 56);
/* oklch */ color: oklch(72.9% 0.129 91.5);
Tailwind
colors: {
  custom: {
    50: '#dbbe75',
    500: '#c5a438',
    950: '#000000',
  },
}
SCSS
$custom: #c5a438;
$custom-light: #dbbe75;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a438",
  "rgb": {
    "r": 197,
    "g": 164,
    "b": 56
  },
  "hsl": {
    "h": 45.957,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72914,
    "c": 0.12865,
    "h": 91.5
  },
  "luminance": 0.38707
}

Semantic roles & 50–950 ramp

primary
#C5A438
secondary
#8C9BCD
accent
#6CDF49
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #C5A438

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

Preview Lab → · Contrast checker → · Palette generator →

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