#CCF797#CCF797

#CCF797 is a very light, vivid yellow-green. Relative luminance 0.816; OKLCH L 92.4% C 0.131 H 128.4°. Best body text is #000000 at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#CCF797
RGBrgb(204, 247, 151)
HSLhsl(87, 86%, 78%)
HSVhsv(87, 39%, 97%)
CMYKcmyk(17.4%, 0%, 38.9%, 3.1%)
CIE-LABlab(92.39, -29.55, 41.69)
CIE-LCHlch(92.39, 51.10, 125.33°)
OKLaboklab(92.41% -0.0811 0.1024)
OKLCHoklch(92.41% 0.131 128.4)
XYZxyz(63.7478, 81.5924, 41.6626)
Luminance0.8159 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCF797 #C297F7
analogous
#F7F297 #CCF797 #9CF797
triadic
#CCF797 #97CCF7 #F797CC
tetradic
#CCF797 #97F7F2 #C297F7 #F7979C
square
#CCF797 #97F7F2 #C297F7 #F7979C
split-complementary
#CCF797 #979CF7 #F297F7
monochromatic
#94EE25 #B0F35E #CCF797 #E8FBD0 #F1FDE3

Accessibility & contrast

On white

1.21
#CCF797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.32
#CCF797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCF797
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCF797#FFFFFF#000000##000000
##CCF7971.001.2117.3217.32
#FFFFFF1.211.0021.0021.00
#00000017.3221.001.001.00
##00000017.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB90
Deuteranopia (green-blind)
#FAE89C
Tritanopia (blue-blind)
#D0EFDF
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ccf797;
/* rgb */ color: rgb(204, 247, 151);
/* oklch */ color: oklch(92.4% 0.131 128.4);
Tailwind
colors: {
  custom: {
    50: '#ddfab7',
    500: '#ccf797',
    950: '#000000',
  },
}
SCSS
$custom: #ccf797;
$custom-light: #ddfab7;
$custom-dark: #000000;
JSON
{
  "hex": "#ccf797",
  "rgb": {
    "r": 204,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 86.875,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.92409,
    "c": 0.13061,
    "h": 128.4
  },
  "luminance": 0.81593
}

Semantic roles & 50–950 ramp

primary
#CCF797
secondary
#935CD6
accent
#03E267
background
#FEFFFD
surface
#FCFFF8
border
#D5D7D1
text
#151711
muted
#848581

Preview Lab

Preview with #CCF797

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

Preview Lab → · Contrast checker → · Palette generator →

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