#C5AF34#C5AF34

#C5AF34 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 75.2% C 0.139 H 98.7°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#C5AF34
RGBrgb(197, 175, 52)
HSLhsl(51, 58%, 49%)
HSVhsv(51, 74%, 77%)
CMYKcmyk(0%, 11.2%, 73.6%, 22.7%)
CIE-LABlab(71.41, -5.27, 62.14)
CIE-LCHlch(71.41, 62.36, 94.85°)
OKLaboklab(75.17% -0.021 0.1371)
OKLCHoklch(75.17% 0.139 98.7)
XYZxyz(38.9777, 42.7801, 9.4525)
Luminance0.4278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AF34 #344AC5
analogous
#C56734 #C5AF34 #93C534
triadic
#C5AF34 #34C5AF #AF34C5
tetradic
#C5AF34 #34C567 #344AC5 #C53493
square
#C5AF34 #34C567 #344AC5 #C53493
split-complementary
#C5AF34 #3493C5 #6734C5
monochromatic
#64591A #958427 #C5AF34 #D5C461 #E2D691

Accessibility & contrast

On white

2.20
#C5AF34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#C5AF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5AF34
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5AF34#FFFFFF#000000##000000
##C5AF341.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA1E
Deuteranopia (green-blind)
#C6B23C
Tritanopia (blue-blind)
#D5A297
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c5af34;
/* rgb */ color: rgb(197, 175, 52);
/* oklch */ color: oklch(75.2% 0.139 98.7);
Tailwind
colors: {
  custom: {
    50: '#dac674',
    500: '#c5af34',
    950: '#000000',
  },
}
SCSS
$custom: #c5af34;
$custom-light: #dac674;
$custom-dark: #000000;
JSON
{
  "hex": "#c5af34",
  "rgb": {
    "r": 197,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 50.897,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75172,
    "c": 0.13865,
    "h": 98.7
  },
  "luminance": 0.42778
}

Semantic roles & 50–950 ramp

primary
#C5AF34
secondary
#8892CD
accent
#5EE146
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C5AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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