#C5CC42#C5CC42

#C5CC42 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.5% C 0.157 H 112.2°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#C5CC42
RGBrgb(197, 204, 66)
HSLhsl(63, 58%, 53%)
HSVhsv(63, 68%, 80%)
CMYKcmyk(3.4%, 0%, 67.6%, 20%)
CIE-LABlab(79.30, -19.34, 64.69)
CIE-LCHlch(79.30, 67.52, 106.65°)
OKLaboklab(81.49% -0.0592 0.1449)
OKLCHoklch(81.49% 0.157 112.2)
XYZxyz(45.6036, 55.4504, 13.4539)
Luminance0.5545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5CC42 #4942CC
analogous
#CC8E42 #C5CC42 #80CC42
triadic
#C5CC42 #42C5CC #CC42C5
tetradic
#C5CC42 #42CC8E #4942CC #CC4280
square
#C5CC42 #42CC8E #4942CC #CC4280
split-complementary
#C5CC42 #4280CC #8E42CC
monochromatic
#70741F #9EA42C #C5CC42 #D4D972 #E3E6A2

Accessibility & contrast

On white

1.74
#C5CC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#C5CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5CC42
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5CC42#FFFFFF#000000##000000
##C5CC421.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32D
Deuteranopia (green-blind)
#DCC64C
Tritanopia (blue-blind)
#D2C0B0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #c5cc42;
/* rgb */ color: rgb(197, 204, 66);
/* oklch */ color: oklch(81.5% 0.157 112.2);
Tailwind
colors: {
  custom: {
    50: '#dadb7e',
    500: '#c5cc42',
    950: '#000000',
  },
}
SCSS
$custom: #c5cc42;
$custom-light: #dadb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c5cc42",
  "rgb": {
    "r": 197,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 63.043,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.8149,
    "c": 0.15653,
    "h": 112.2
  },
  "luminance": 0.55449
}

Semantic roles & 50–950 ramp

primary
#C5CC42
secondary
#39357D
accent
#47E14F
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C5CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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