#C5C331#C5C331

#C5C331 is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.4% C 0.158 H 108.7°. Best body text is #000000 at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#C5C331
RGBrgb(197, 195, 49)
HSLhsl(59, 60%, 48%)
HSVhsv(59, 75%, 77%)
CMYKcmyk(0%, 1%, 75.1%, 22.7%)
CIE-LABlab(76.75, -15.68, 68.20)
CIE-LCHlch(76.75, 69.98, 102.94°)
OKLaboklab(79.42% -0.0505 0.1494)
OKLCHoklch(79.42% 0.158 108.7)
XYZxyz(43.0971, 51.1237, 10.5028)
Luminance0.5112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C331 #3133C5
analogous
#C57931 #C5C331 #7DC531
triadic
#C5C331 #31C5C3 #C331C5
tetradic
#C5C331 #31C579 #3133C5 #C5317D
square
#C5C331 #31C579 #3133C5 #C5317D
split-complementary
#C5C331 #317DC5 #7931C5
monochromatic
#636219 #949225 #C5C331 #D7D55D #E3E28E

Accessibility & contrast

On white

1.87
#C5C331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.22
#C5C331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C331
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C331#FFFFFF#000000##000000
##C5C3311.001.8711.2211.22
#FFFFFF1.871.0021.0021.00
#00000011.2221.001.001.00
##00000011.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB0D
Deuteranopia (green-blind)
#D5C03D
Tritanopia (blue-blind)
#D3B6A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c5c331;
/* rgb */ color: rgb(197, 195, 49);
/* oklch */ color: oklch(79.4% 0.158 108.7);
Tailwind
colors: {
  custom: {
    50: '#dad475',
    500: '#c5c331',
    950: '#000000',
  },
}
SCSS
$custom: #c5c331;
$custom-light: #dad475;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c331",
  "rgb": {
    "r": 197,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 59.189,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.79423,
    "c": 0.15767,
    "h": 108.7
  },
  "luminance": 0.51122
}

Semantic roles & 50–950 ramp

primary
#C5C331
secondary
#2D2E6E
accent
#47E344
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C5C331

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

Preview Lab → · Contrast checker → · Palette generator →

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