#C5C531#C5C531

#C5C531 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 79.9% C 0.160 H 109.5°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#C5C531
RGBrgb(197, 197, 49)
HSLhsl(60, 60%, 48%)
HSVhsv(60, 75%, 77%)
CMYKcmyk(0%, 0%, 75.1%, 22.7%)
CIE-LABlab(77.30, -16.68, 68.70)
CIE-LCHlch(77.30, 70.69, 103.65°)
OKLaboklab(79.86% -0.0533 0.1504)
OKLCHoklch(79.86% 0.16 109.5)
XYZxyz(43.5482, 52.0259, 10.6532)
Luminance0.5202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C531 #3131C5
analogous
#C57B31 #C5C531 #7BC531
triadic
#C5C531 #31C5C5 #C531C5
tetradic
#C5C531 #31C57B #3131C5 #C5317B
square
#C5C531 #31C57B #3131C5 #C5317B
split-complementary
#C5C531 #317BC5 #7B31C5
monochromatic
#636319 #949425 #C5C531 #D7D75D #E3E38E

Accessibility & contrast

On white

1.84
#C5C531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#C5C531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C531
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C531#FFFFFF#000000##000000
##C5C5311.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD0B
Deuteranopia (green-blind)
#D7C13D
Tritanopia (blue-blind)
#D3B8A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #c5c531;
/* rgb */ color: rgb(197, 197, 49);
/* oklch */ color: oklch(79.9% 0.160 109.5);
Tailwind
colors: {
  custom: {
    50: '#dad675',
    500: '#c5c531',
    950: '#000000',
  },
}
SCSS
$custom: #c5c531;
$custom-light: #dad675;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c531",
  "rgb": {
    "r": 197,
    "g": 197,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.79856,
    "c": 0.1596,
    "h": 109.5
  },
  "luminance": 0.52025
}

Semantic roles & 50–950 ramp

primary
#C5C531
secondary
#2D2D6E
accent
#44E344
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C5C531

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

Preview Lab → · Contrast checker → · Palette generator →

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