#CCE227#CCE227

#CCE227 is a very light, vivid yellow. Relative luminance 0.674; OKLCH L 86.7% C 0.191 H 116.8°. Best body text is #000000 at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#CCE227
RGBrgb(204, 226, 39)
HSLhsl(67, 76%, 52%)
HSVhsv(67, 83%, 89%)
CMYKcmyk(9.7%, 0%, 82.7%, 11.4%)
CIE-LABlab(85.69, -28.18, 79.02)
CIE-LCHlch(85.69, 83.89, 109.63°)
OKLaboklab(86.71% -0.0862 0.1706)
OKLCHoklch(86.71% 0.191 116.8)
XYZxyz(52.4659, 67.3773, 12.1603)
Luminance0.6738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE227 #3D27E2
analogous
#E29B27 #CCE227 #6EE227
triadic
#CCE227 #27CCE2 #E227CC
tetradic
#CCE227 #27E29B #3D27E2 #E2276E
square
#CCE227 #27E29B #3D27E2 #E2276E
split-complementary
#CCE227 #276EE2 #9B27E2
monochromatic
#717E11 #A1B418 #CCE227 #D9E95D #E5F093

Accessibility & contrast

On white

1.45
#CCE227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.48
#CCE227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE227
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE227#FFFFFF#000000##000000
##CCE2271.001.4514.4814.48
#FFFFFF1.451.0021.0021.00
#00000014.4821.001.001.00
##00000014.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D600
Deuteranopia (green-blind)
#F0D73C
Tritanopia (blue-blind)
#D9D5C1
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #cce227;
/* rgb */ color: rgb(204, 226, 39);
/* oklch */ color: oklch(86.7% 0.191 116.8);
Tailwind
colors: {
  custom: {
    50: '#e0eb75',
    500: '#cce227',
    950: '#000000',
  },
}
SCSS
$custom: #cce227;
$custom-light: #e0eb75;
$custom-dark: #000000;
JSON
{
  "hex": "#cce227",
  "rgb": {
    "r": 204,
    "g": 226,
    "b": 39
  },
  "hsl": {
    "h": 67.059,
    "s": 76.327,
    "l": 51.961
  },
  "oklch": {
    "l": 0.86706,
    "c": 0.19111,
    "h": 116.8
  },
  "luminance": 0.67377
}

Semantic roles & 50–950 ramp

primary
#CCE227
secondary
#332885
accent
#35F34B
background
#FEFEFB
surface
#FDFDF1
border
#D5D5CB
text
#16160A
muted
#84847D

Preview Lab

Preview with #CCE227

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

Preview Lab → · Contrast checker → · Palette generator →

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