#C4CC31#C4CC31

#C4CC31 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.3% C 0.167 H 112.6°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#C4CC31
RGBrgb(196, 204, 49)
HSLhsl(63, 61%, 50%)
HSVhsv(63, 76%, 80%)
CMYKcmyk(3.9%, 0%, 76%, 20%)
CIE-LABlab(79.12, -20.57, 70.35)
CIE-LCHlch(79.12, 73.29, 106.30°)
OKLaboklab(81.3% -0.0641 0.154)
OKLCHoklch(81.3% 0.167 112.6)
XYZxyz(44.9137, 55.1443, 11.1831)
Luminance0.5514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4CC31 #3931CC
analogous
#CC8731 #C4CC31 #76CC31
triadic
#C4CC31 #31C4CC #CC31C4
tetradic
#C4CC31 #31CC87 #3931CC #CC3176
square
#C4CC31 #31CC87 #3931CC #CC3176
split-complementary
#C4CC31 #3176CC #8731CC
monochromatic
#656919 #959B25 #C4CC31 #D3D961 #E1E592

Accessibility & contrast

On white

1.75
#C4CC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#C4CC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4CC31
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4CC31#FFFFFF#000000##000000
##C4CC311.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC204
Deuteranopia (green-blind)
#DCC63F
Tritanopia (blue-blind)
#D2BFAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #c4cc31;
/* rgb */ color: rgb(196, 204, 49);
/* oklch */ color: oklch(81.3% 0.167 112.6);
Tailwind
colors: {
  custom: {
    50: '#dadb76',
    500: '#c4cc31',
    950: '#000000',
  },
}
SCSS
$custom: #c4cc31;
$custom-light: #dadb76;
$custom-dark: #000000;
JSON
{
  "hex": "#c4cc31",
  "rgb": {
    "r": 196,
    "g": 204,
    "b": 49
  },
  "hsl": {
    "h": 63.097,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.81299,
    "c": 0.16678,
    "h": 112.6
  },
  "luminance": 0.55143
}

Semantic roles & 50–950 ramp

primary
#C4CC31
secondary
#322E73
accent
#43E44C
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C4CC31

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

Preview Lab → · Contrast checker → · Palette generator →

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