#C5AF2A#C5AF2A

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

Color values

HEX#C5AF2A
RGBrgb(197, 175, 42)
HSLhsl(51, 65%, 47%)
HSVhsv(51, 79%, 77%)
CMYKcmyk(0%, 11.2%, 78.7%, 22.7%)
CIE-LABlab(71.35, -5.68, 65.50)
CIE-LCHlch(71.35, 65.75, 94.95°)
OKLaboklab(75.11% -0.0231 0.1423)
OKLCHoklch(75.11% 0.144 99.2)
XYZxyz(38.7758, 42.6994, 8.3894)
Luminance0.4270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AF2A #2A40C5
analogous
#C5622A #C5AF2A #8EC52A
triadic
#C5AF2A #2AC5AF #AF2AC5
tetradic
#C5AF2A #2AC562 #2A40C5 #C52A8E
square
#C5AF2A #2AC562 #2A40C5 #C52A8E
split-complementary
#C5AF2A #2A8EC5 #622AC5
monochromatic
#605514 #93821F #C5AF2A #DAC752 #E5D785

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C5AF2A#FFFFFF#000000##000000
##C5AF2A1.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)
#C1AA05
Deuteranopia (green-blind)
#C7B234
Tritanopia (blue-blind)
#D5A196
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c5af2a;
/* rgb */ color: rgb(197, 175, 42);
/* oklch */ color: oklch(75.1% 0.144 99.2);
Tailwind
colors: {
  custom: {
    50: '#dbc66f',
    500: '#c5af2a',
    950: '#000000',
  },
}
SCSS
$custom: #c5af2a;
$custom-light: #dbc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#c5af2a",
  "rgb": {
    "r": 197,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 51.484,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75111,
    "c": 0.14412,
    "h": 99.2
  },
  "luminance": 0.42697
}

Semantic roles & 50–950 ramp

primary
#C5AF2A
secondary
#7D88CE
accent
#58E840
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C5AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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