#CCE340#CCE340

#CCE340 is a very light, vivid yellow. Relative luminance 0.681; OKLCH L 87.1% C 0.181 H 117.4°. Best body text is #000000 at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#CCE340
RGBrgb(204, 227, 64)
HSLhsl(68, 74%, 57%)
HSVhsv(68, 72%, 89%)
CMYKcmyk(10.1%, 0%, 71.8%, 11%)
CIE-LABlab(86.08, -27.69, 72.26)
CIE-LCHlch(86.08, 77.38, 110.96°)
OKLaboklab(87.05% -0.083 0.1603)
OKLCHoklch(87.05% 0.181 117.4)
XYZxyz(53.2976, 68.1463, 15.1953)
Luminance0.6815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE340 #5740E3
analogous
#E3A840 #CCE340 #7BE340
triadic
#CCE340 #40CCE3 #E340CC
tetradic
#CCE340 #40E3A8 #5740E3 #E3407B
square
#CCE340 #40E3A8 #5740E3 #E3407B
split-complementary
#CCE340 #407BE3 #A840E3
monochromatic
#819316 #B0C81D #CCE340 #DAEB75 #E9F3AB

Accessibility & contrast

On white

1.44
#CCE340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.63
#CCE340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE340
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE340#FFFFFF#000000##000000
##CCE3401.001.4414.6314.63
#FFFFFF1.441.0021.0021.00
#00000014.6321.001.001.00
##00000014.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D720
Deuteranopia (green-blind)
#F0D84E
Tritanopia (blue-blind)
#D8D6C4
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #cce340;
/* rgb */ color: rgb(204, 227, 64);
/* oklch */ color: oklch(87.1% 0.181 117.4);
Tailwind
colors: {
  custom: {
    50: '#dfeb80',
    500: '#cce340',
    950: '#000000',
  },
}
SCSS
$custom: #cce340;
$custom-light: #dfeb80;
$custom-dark: #000000;
JSON
{
  "hex": "#cce340",
  "rgb": {
    "r": 204,
    "g": 227,
    "b": 64
  },
  "hsl": {
    "h": 68.466,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.87052,
    "c": 0.18051,
    "h": 117.4
  },
  "luminance": 0.68146
}

Semantic roles & 50–950 ramp

primary
#CCE340
secondary
#3E3097
accent
#37F151
background
#FEFEFB
surface
#FCFDF2
border
#D5D5CC
text
#16160B
muted
#84847E

Preview Lab

Preview with #CCE340

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

Preview Lab → · Contrast checker → · Palette generator →

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