#C5A538#C5A538

#C5A538 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 73.1% C 0.129 H 92.2°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#C5A538
RGBrgb(197, 165, 56)
HSLhsl(46, 56%, 50%)
HSVhsv(46, 72%, 77%)
CMYKcmyk(0%, 16.2%, 71.6%, 22.7%)
CIE-LABlab(68.80, 0.21, 58.06)
CIE-LCHlch(68.80, 58.06, 89.79°)
OKLaboklab(73.12% -0.0049 0.1291)
OKLCHoklch(73.12% 0.129 92.2)
XYZxyz(37.1969, 39.0683, 9.3223)
Luminance0.3907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A538 #3858C5
analogous
#C55F38 #C5A538 #9FC538
triadic
#C5A538 #38C5A5 #A538C5
tetradic
#C5A538 #38C55F #3858C5 #C5389F
square
#C5A538 #38C55F #3858C5 #C5389F
split-complementary
#C5A538 #389FC5 #5F38C5
monochromatic
#66551D #957D2A #C5A538 #D4BB67 #E1D096

Accessibility & contrast

On white

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

On black

8.81
#C5A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A538
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A538#FFFFFF#000000##000000
##C5A5381.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A228
Deuteranopia (green-blind)
#BFAC3E
Tritanopia (blue-blind)
#D5988F
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c5a538;
/* rgb */ color: rgb(197, 165, 56);
/* oklch */ color: oklch(73.1% 0.129 92.2);
Tailwind
colors: {
  custom: {
    50: '#dabf75',
    500: '#c5a538',
    950: '#000000',
  },
}
SCSS
$custom: #c5a538;
$custom-light: #dabf75;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a538",
  "rgb": {
    "r": 197,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 46.383,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.7312,
    "c": 0.12924,
    "h": 92.2
  },
  "luminance": 0.39066
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C5A538

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

Preview Lab → · Contrast checker → · Palette generator →

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