#C2D540#C2D540

#C2D540 is a very light, vivid yellow. Relative luminance 0.594; OKLCH L 83.2% C 0.168 H 116.5°. Best body text is #000000 at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#C2D540
RGBrgb(194, 213, 64)
HSLhsl(68, 64%, 54%)
HSVhsv(68, 70%, 84%)
CMYKcmyk(8.9%, 0%, 70%, 16.5%)
CIE-LABlab(81.53, -25.07, 67.58)
CIE-LCHlch(81.53, 72.08, 110.36°)
OKLaboklab(83.21% -0.0752 0.1507)
OKLCHoklch(83.21% 0.168 116.5)
XYZxyz(46.9689, 59.4286, 13.8461)
Luminance0.5943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2D540 #5340D5
analogous
#D59E40 #C2D540 #78D540
triadic
#C2D540 #40C2D5 #D540C2
tetradic
#C2D540 #40D59E #5340D5 #D54078
square
#C2D540 #40D59E #5340D5 #D54078
split-complementary
#C2D540 #4078D5 #9E40D5
monochromatic
#727F1C #9FB127 #C2D540 #D2E072 #E2EBA4

Accessibility & contrast

On white

1.63
#C2D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.89
#C2D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2D540
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2D540#FFFFFF#000000##000000
##C2D5401.001.6312.8912.89
#FFFFFF1.631.0021.0021.00
#00000012.8921.001.001.00
##00000012.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA26
Deuteranopia (green-blind)
#E2CC4C
Tritanopia (blue-blind)
#CEC9B8
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #c2d540;
/* rgb */ color: rgb(194, 213, 64);
/* oklch */ color: oklch(83.2% 0.168 116.5);
Tailwind
colors: {
  custom: {
    50: '#d8e17e',
    500: '#c2d540',
    950: '#000000',
  },
}
SCSS
$custom: #c2d540;
$custom-light: #d8e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#c2d540",
  "rgb": {
    "r": 194,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 67.651,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.83215,
    "c": 0.16844,
    "h": 116.5
  },
  "luminance": 0.59428
}

Semantic roles & 50–950 ramp

primary
#C2D540
secondary
#3E3386
accent
#41E756
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C2D540

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

Preview Lab → · Contrast checker → · Palette generator →

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