#CCE797#CCE797

#CCE797 is a very light, moderate yellow-green. Relative luminance 0.722; OKLCH L 88.9% C 0.107 H 123.7°. Best body text is #000000 at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#CCE797
RGBrgb(204, 231, 151)
HSLhsl(80, 63%, 75%)
HSVhsv(80, 35%, 91%)
CMYKcmyk(11.7%, 0%, 34.6%, 9.4%)
CIE-LABlab(88.08, -21.93, 36.08)
CIE-LCHlch(88.08, 42.22, 121.29°)
OKLaboklab(88.95% -0.0597 0.0894)
OKLCHoklch(88.95% 0.107 123.7)
XYZxyz(59.0632, 72.2234, 40.1011)
Luminance0.7222 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE797 #B297E7
analogous
#E7DA97 #CCE797 #A4E797
triadic
#CCE797 #97CCE7 #E797CC
tetradic
#CCE797 #97E7DA #B297E7 #E797A4
square
#CCE797 #97E7DA #B297E7 #E797A4
split-complementary
#CCE797 #97A4E7 #DA97E7
monochromatic
#9BD034 #B4DC65 #CCE797 #E4F2C9 #F3F9E6

Accessibility & contrast

On white

1.36
#CCE797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.44
#CCE797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE797
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE797#FFFFFF#000000##000000
##CCE7971.001.3615.4415.44
#FFFFFF1.361.0021.0021.00
#00000015.4421.001.001.00
##00000015.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DE91
Deuteranopia (green-blind)
#ECDD9B
Tritanopia (blue-blind)
#D2E0D3
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #cce797;
/* rgb */ color: rgb(204, 231, 151);
/* oklch */ color: oklch(88.9% 0.107 123.7);
Tailwind
colors: {
  custom: {
    50: '#dceeb6',
    500: '#cce797',
    950: '#000000',
  },
}
SCSS
$custom: #cce797;
$custom-light: #dceeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#cce797",
  "rgb": {
    "r": 204,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 80.25,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.88948,
    "c": 0.10749,
    "h": 123.7
  },
  "luminance": 0.72224
}

Semantic roles & 50–950 ramp

primary
#CCE797
secondary
#8161C1
accent
#1BCA56
background
#FEFFFD
surface
#FCFEF8
border
#D5D6D1
text
#151611
muted
#848581

Preview Lab

Preview with #CCE797

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

Preview Lab → · Contrast checker → · Palette generator →

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