#C5B02A#C5B02A

#C5B02A is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.3% C 0.145 H 99.8°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#C5B02A
RGBrgb(197, 176, 42)
HSLhsl(52, 65%, 47%)
HSVhsv(52, 79%, 77%)
CMYKcmyk(0%, 10.7%, 78.7%, 22.7%)
CIE-LABlab(71.62, -6.20, 65.74)
CIE-LCHlch(71.62, 66.03, 95.39°)
OKLaboklab(75.32% -0.0246 0.1428)
OKLCHoklch(75.32% 0.145 99.8)
XYZxyz(38.9712, 43.0901, 8.4545)
Luminance0.4309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B02A #2A3FC5
analogous
#C5632A #C5B02A #8DC52A
triadic
#C5B02A #2AC5B0 #B02AC5
tetradic
#C5B02A #2AC563 #2A3FC5 #C52A8D
square
#C5B02A #2AC563 #2A3FC5 #C52A8D
split-complementary
#C5B02A #2A8DC5 #632AC5
monochromatic
#605614 #93831F #C5B02A #DAC852 #E5D885

Accessibility & contrast

On white

2.18
#C5B02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#C5B02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B02A
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B02A#FFFFFF#000000##000000
##C5B02A1.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c5b02a;
/* rgb */ color: rgb(197, 176, 42);
/* oklch */ color: oklch(75.3% 0.145 99.8);
Tailwind
colors: {
  custom: {
    50: '#dbc76f',
    500: '#c5b02a',
    950: '#000000',
  },
}
SCSS
$custom: #c5b02a;
$custom-light: #dbc76f;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b02a",
  "rgb": {
    "r": 197,
    "g": 176,
    "b": 42
  },
  "hsl": {
    "h": 51.871,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75322,
    "c": 0.14487,
    "h": 99.8
  },
  "luminance": 0.43088
}

Semantic roles & 50–950 ramp

primary
#C5B02A
secondary
#7D88CE
accent
#57E840
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #C5B02A

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

Preview Lab → · Contrast checker → · Palette generator →

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