#C5AF40#C5AF40

#C5AF40 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.3% C 0.131 H 97.9°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#C5AF40
RGBrgb(197, 175, 64)
HSLhsl(50, 53%, 51%)
HSVhsv(50, 68%, 77%)
CMYKcmyk(0%, 11.2%, 67.5%, 22.7%)
CIE-LABlab(71.49, -4.66, 57.52)
CIE-LCHlch(71.49, 57.71, 94.64°)
OKLaboklab(75.27% -0.018 0.1294)
OKLCHoklch(75.27% 0.131 97.9)
XYZxyz(39.2831, 42.9023, 11.0613)
Luminance0.4290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AF40 #4056C5
analogous
#C56C40 #C5AF40 #98C540
triadic
#C5AF40 #40C5AF #AF40C5
tetradic
#C5AF40 #40C56C #4056C5 #C54098
square
#C5AF40 #40C56C #4056C5 #C54098
split-complementary
#C5AF40 #4098C5 #6C40C5
monochromatic
#6A5E20 #99882F #C5AF40 #D3C36F #E2D69E

Accessibility & contrast

On white

2.19
#C5AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#C5AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5AF40
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5AF40#FFFFFF#000000##000000
##C5AF401.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB31
Deuteranopia (green-blind)
#C6B246
Tritanopia (blue-blind)
#D4A298
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c5af40;
/* rgb */ color: rgb(197, 175, 64);
/* oklch */ color: oklch(75.3% 0.131 97.9);
Tailwind
colors: {
  custom: {
    50: '#dac67b',
    500: '#c5af40',
    950: '#000000',
  },
}
SCSS
$custom: #c5af40;
$custom-light: #dac67b;
$custom-dark: #000000;
JSON
{
  "hex": "#c5af40",
  "rgb": {
    "r": 197,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 50.075,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75265,
    "c": 0.13066,
    "h": 97.9
  },
  "luminance": 0.429
}

Semantic roles & 50–950 ramp

primary
#C5AF40
secondary
#939DCE
accent
#63DD4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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