#C5C842#C5C842

#C5C842 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.6% C 0.152 H 110.6°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#C5C842
RGBrgb(197, 200, 66)
HSLhsl(61, 55%, 52%)
HSVhsv(61, 67%, 78%)
CMYKcmyk(1.5%, 0%, 67%, 21.6%)
CIE-LABlab(78.21, -17.36, 63.60)
CIE-LCHlch(78.21, 65.92, 105.27°)
OKLaboklab(80.62% -0.0537 0.1426)
OKLCHoklch(80.62% 0.152 110.6)
XYZxyz(44.6650, 53.5734, 13.1411)
Luminance0.5357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C842 #4542C8
analogous
#C88842 #C5C842 #82C842
triadic
#C5C842 #42C5C8 #C842C5
tetradic
#C5C842 #42C888 #4542C8 #C84282
square
#C5C842 #42C888 #4542C8 #C84282
split-complementary
#C5C842 #4282C8 #8842C8
monochromatic
#6D6F20 #9C9F2E #C5C842 #D4D671 #E2E4A1

Accessibility & contrast

On white

1.79
#C5C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.71
#C5C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C842
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C842#FFFFFF#000000##000000
##C5C8421.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#D8C34B
Tritanopia (blue-blind)
#D2BCAD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c5c842;
/* rgb */ color: rgb(197, 200, 66);
/* oklch */ color: oklch(80.6% 0.152 110.6);
Tailwind
colors: {
  custom: {
    50: '#dad87e',
    500: '#c5c842',
    950: '#000000',
  },
}
SCSS
$custom: #c5c842;
$custom-light: #dad87e;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c842",
  "rgb": {
    "r": 197,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 61.343,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.8062,
    "c": 0.15235,
    "h": 110.6
  },
  "luminance": 0.53572
}

Semantic roles & 50–950 ramp

primary
#C5C842
secondary
#373679
accent
#4ADE4D
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C5C842

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

Preview Lab → · Contrast checker → · Palette generator →

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