#C4AF3B#C4AF3B

#C4AF3B is a light, vivid yellow. Relative luminance 0.427; OKLCH L 75.1% C 0.134 H 98.8°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#C4AF3B
RGBrgb(196, 175, 59)
HSLhsl(51, 54%, 50%)
HSVhsv(51, 70%, 77%)
CMYKcmyk(0%, 10.7%, 69.9%, 23.1%)
CIE-LABlab(71.36, -5.37, 59.39)
CIE-LCHlch(71.36, 59.64, 95.16°)
OKLaboklab(75.13% -0.0205 0.1326)
OKLCHoklch(75.13% 0.134 98.8)
XYZxyz(38.8862, 42.7133, 10.3331)
Luminance0.4271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4AF3B #3B50C4
analogous
#C46B3B #C4AF3B #94C43B
triadic
#C4AF3B #3BC4AF #AF3BC4
tetradic
#C4AF3B #3BC46B #3B50C4 #C43B94
square
#C4AF3B #3BC46B #3B50C4 #C43B94
split-complementary
#C4AF3B #3B94C4 #6B3BC4
monochromatic
#665B1F #95852D #C4AF3B #D2C26A #E0D599

Accessibility & contrast

On white

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

On black

9.54
#C4AF3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4AF3B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4AF3B#FFFFFF#000000##000000
##C4AF3B1.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c4af3b;
/* rgb */ color: rgb(196, 175, 59);
/* oklch */ color: oklch(75.1% 0.134 98.8);
Tailwind
colors: {
  custom: {
    50: '#d9c678',
    500: '#c4af3b',
    950: '#000000',
  },
}
SCSS
$custom: #c4af3b;
$custom-light: #d9c678;
$custom-dark: #000000;
JSON
{
  "hex": "#c4af3b",
  "rgb": {
    "r": 196,
    "g": 175,
    "b": 59
  },
  "hsl": {
    "h": 50.803,
    "s": 53.725,
    "l": 50
  },
  "oklch": {
    "l": 0.7513,
    "c": 0.13413,
    "h": 98.8
  },
  "luminance": 0.42711
}

Semantic roles & 50–950 ramp

primary
#C4AF3B
secondary
#8F98CC
accent
#61DD4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #C4AF3B

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

Preview Lab → · Contrast checker → · Palette generator →

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