#C2D162#C2D162

#C2D162 is a very light, vivid yellow. Relative luminance 0.580; OKLCH L 82.7% C 0.137 H 115.9°. Best body text is #000000 at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#C2D162
RGBrgb(194, 209, 98)
HSLhsl(68, 55%, 60%)
HSVhsv(68, 53%, 82%)
CMYKcmyk(7.2%, 0%, 53.1%, 18%)
CIE-LABlab(80.71, -20.77, 52.59)
CIE-LCHlch(80.71, 56.54, 111.55°)
OKLaboklab(82.65% -0.0598 0.1234)
OKLCHoklch(82.65% 0.137 115.9)
XYZxyz(47.2540, 57.9527, 20.2496)
Luminance0.5795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2D162 #7162D1
analogous
#D1A862 #C2D162 #8AD162
triadic
#C2D162 #62C2D1 #D162C2
tetradic
#C2D162 #62D1A8 #7162D1 #D1628A
square
#C2D162 #62D1A8 #7162D1 #D1628A
split-complementary
#C2D162 #628AD1 #A862D1
monochromatic
#818F2A #ACBE38 #C2D162 #D4DF91 #E7EDC1

Accessibility & contrast

On white

1.67
#C2D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.59
#C2D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2D162
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2D162#FFFFFF#000000##000000
##C2D1621.001.6712.5912.59
#FFFFFF1.671.0021.0021.00
#00000012.5921.001.001.00
##00000012.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC857
Deuteranopia (green-blind)
#DCC968
Tritanopia (blue-blind)
#CCC7B8
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #c2d162;
/* rgb */ color: rgb(194, 209, 98);
/* oklch */ color: oklch(82.7% 0.137 115.9);
Tailwind
colors: {
  custom: {
    50: '#d6df92',
    500: '#c2d162',
    950: '#000000',
  },
}
SCSS
$custom: #c2d162;
$custom-light: #d6df92;
$custom-dark: #000000;
JSON
{
  "hex": "#c2d162",
  "rgb": {
    "r": 194,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 68.108,
    "s": 54.68,
    "l": 60.196
  },
  "oklch": {
    "l": 0.82653,
    "c": 0.13711,
    "h": 115.9
  },
  "luminance": 0.57952
}

Semantic roles & 50–950 ramp

primary
#C2D162
secondary
#4E4295
accent
#23C239
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#15150D
muted
#84847F

Preview Lab

Preview with #C2D162

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

Preview Lab → · Contrast checker → · Palette generator →

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