#C2D842#C2D842

#C2D842 is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 83.9% C 0.171 H 117.5°. Best body text is #000000 at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#C2D842
RGBrgb(194, 216, 66)
HSLhsl(69, 66%, 55%)
HSVhsv(69, 69%, 85%)
CMYKcmyk(10.2%, 0%, 69.4%, 15.3%)
CIE-LABlab(82.37, -26.40, 67.69)
CIE-LCHlch(82.37, 72.65, 111.31°)
OKLaboklab(83.89% -0.0787 0.1513)
OKLCHoklch(83.89% 0.171 117.5)
XYZxyz(47.7884, 60.9749, 14.4050)
Luminance0.6097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2D842 #5842D8
analogous
#D8A342 #C2D842 #77D842
triadic
#C2D842 #42C2D8 #D842C2
tetradic
#C2D842 #42D8A3 #5842D8 #D84277
square
#C2D842 #42D8A3 #5842D8 #D84277
split-complementary
#C2D842 #4277D8 #A342D8
monochromatic
#75841B #A2B726 #C2D842 #D2E275 #E3EDA7

Accessibility & contrast

On white

1.59
#C2D842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.19
#C2D842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2D842
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2D842#FFFFFF#000000##000000
##C2D8421.001.5913.1913.19
#FFFFFF1.591.0021.0021.00
#00000013.1921.001.001.00
##00000013.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC29
Deuteranopia (green-blind)
#E4CE4E
Tritanopia (blue-blind)
#CECCBA
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #c2d842;
/* rgb */ color: rgb(194, 216, 66);
/* oklch */ color: oklch(83.9% 0.171 117.5);
Tailwind
colors: {
  custom: {
    50: '#d8e47f',
    500: '#c2d842',
    950: '#000000',
  },
}
SCSS
$custom: #c2d842;
$custom-light: #d8e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#c2d842",
  "rgb": {
    "r": 194,
    "g": 216,
    "b": 66
  },
  "hsl": {
    "h": 68.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.83893,
    "c": 0.17052,
    "h": 117.5
  },
  "luminance": 0.60974
}

Semantic roles & 50–950 ramp

primary
#C2D842
secondary
#40338B
accent
#3FE958
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C2D842

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

Preview Lab → · Contrast checker → · Palette generator →

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