#C5C831#C5C831

#C5C831 is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.5% C 0.163 H 110.7°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#C5C831
RGBrgb(197, 200, 49)
HSLhsl(61, 61%, 49%)
HSVhsv(61, 76%, 78%)
CMYKcmyk(1.5%, 0%, 75.5%, 21.6%)
CIE-LABlab(78.11, -18.17, 69.45)
CIE-LCHlch(78.11, 71.78, 104.66°)
OKLaboklab(80.51% -0.0575 0.152)
OKLCHoklch(80.51% 0.163 110.7)
XYZxyz(44.2362, 53.4019, 10.8825)
Luminance0.5340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C831 #3431C8
analogous
#C88031 #C5C831 #7AC831
triadic
#C5C831 #31C5C8 #C831C5
tetradic
#C5C831 #31C880 #3431C8 #C8317A
square
#C5C831 #31C880 #3431C8 #C8317A
split-complementary
#C5C831 #317AC8 #8031C8
monochromatic
#646619 #959725 #C5C831 #D5D85F #E2E490

Accessibility & contrast

On white

1.80
#C5C831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.68
#C5C831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C831
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C831#FFFFFF#000000##000000
##C5C8311.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF08
Deuteranopia (green-blind)
#D9C33E
Tritanopia (blue-blind)
#D3BBAC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c5c831;
/* rgb */ color: rgb(197, 200, 49);
/* oklch */ color: oklch(80.5% 0.163 110.7);
Tailwind
colors: {
  custom: {
    50: '#dad875',
    500: '#c5c831',
    950: '#000000',
  },
}
SCSS
$custom: #c5c831;
$custom-light: #dad875;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c831",
  "rgb": {
    "r": 197,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 61.192,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.80508,
    "c": 0.16253,
    "h": 110.7
  },
  "luminance": 0.53401
}

Semantic roles & 50–950 ramp

primary
#C5C831
secondary
#2F2D70
accent
#44E447
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C5C831

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

Preview Lab → · Contrast checker → · Palette generator →

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