#C4AF40#C4AF40

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

Color values

HEX#C4AF40
RGBrgb(196, 175, 64)
HSLhsl(50, 53%, 51%)
HSVhsv(50, 67%, 77%)
CMYKcmyk(0%, 10.7%, 67.3%, 23.1%)
CIE-LABlab(71.40, -5.10, 57.40)
CIE-LCHlch(71.40, 57.62, 95.07°)
OKLaboklab(75.17% -0.0191 0.1292)
OKLCHoklch(75.17% 0.131 98.4)
XYZxyz(39.0221, 42.7677, 11.0491)
Luminance0.4277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4AF40 #4055C4
analogous
#C46D40 #C4AF40 #97C440
triadic
#C4AF40 #40C4AF #AF40C4
tetradic
#C4AF40 #40C46D #4055C4 #C44097
square
#C4AF40 #40C46D #4055C4 #C44097
split-complementary
#C4AF40 #4097C4 #6D40C4
monochromatic
#695E20 #98872F #C4AF40 #D2C36F #E1D69E

Accessibility & contrast

On white

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

On black

9.55
#C4AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4AF40
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4AF40#FFFFFF#000000##000000
##C4AF401.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c4af40;
/* rgb */ color: rgb(196, 175, 64);
/* oklch */ color: oklch(75.2% 0.131 98.4);
Tailwind
colors: {
  custom: {
    50: '#d9c67b',
    500: '#c4af40',
    950: '#000000',
  },
}
SCSS
$custom: #c4af40;
$custom-light: #d9c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#c4af40",
  "rgb": {
    "r": 196,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 50.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.75171,
    "c": 0.13061,
    "h": 98.4
  },
  "luminance": 0.42766
}

Semantic roles & 50–950 ramp

primary
#C4AF40
secondary
#939CCD
accent
#63DC4C
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C4AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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