#C5B22A#C5B22A

#C5B22A is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.7% C 0.146 H 100.8°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#C5B22A
RGBrgb(197, 178, 42)
HSLhsl(53, 65%, 47%)
HSVhsv(53, 79%, 77%)
CMYKcmyk(0%, 9.6%, 78.7%, 22.7%)
CIE-LABlab(72.15, -7.24, 66.21)
CIE-LCHlch(72.15, 66.61, 96.24°)
OKLaboklab(75.74% -0.0275 0.1438)
OKLCHoklch(75.74% 0.146 100.8)
XYZxyz(39.3662, 43.8802, 8.5862)
Luminance0.4388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B22A #2A3DC5
analogous
#C5652A #C5B22A #8BC52A
triadic
#C5B22A #2AC5B2 #B22AC5
tetradic
#C5B22A #2AC565 #2A3DC5 #C52A8B
square
#C5B22A #2AC565 #2A3DC5 #C52A8B
split-complementary
#C5B22A #2A8BC5 #652AC5
monochromatic
#605714 #93841F #C5B22A #DAC952 #E5D985

Accessibility & contrast

On white

2.15
#C5B22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#C5B22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B22A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B22A#FFFFFF#000000##000000
##C5B22A1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD03
Deuteranopia (green-blind)
#C9B434
Tritanopia (blue-blind)
#D5A599
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c5b22a;
/* rgb */ color: rgb(197, 178, 42);
/* oklch */ color: oklch(75.7% 0.146 100.8);
Tailwind
colors: {
  custom: {
    50: '#dbc870',
    500: '#c5b22a',
    950: '#000000',
  },
}
SCSS
$custom: #c5b22a;
$custom-light: #dbc870;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b22a",
  "rgb": {
    "r": 197,
    "g": 178,
    "b": 42
  },
  "hsl": {
    "h": 52.645,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75744,
    "c": 0.14641,
    "h": 100.8
  },
  "luminance": 0.43878
}

Semantic roles & 50–950 ramp

primary
#C5B22A
secondary
#7D87CE
accent
#55E840
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #C5B22A

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

Preview Lab → · Contrast checker → · Palette generator →

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