#CCF798#CCF798

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

Color values

HEX#CCF798
RGBrgb(204, 247, 152)
HSLhsl(87, 86%, 78%)
HSVhsv(87, 38%, 97%)
CMYKcmyk(17.4%, 0%, 38.5%, 3.1%)
CIE-LABlab(92.41, -29.43, 41.22)
CIE-LCHlch(92.41, 50.64, 125.52°)
OKLaboklab(92.43% -0.0807 0.1013)
OKLCHoklch(92.43% 0.13 128.5)
XYZxyz(63.8293, 81.6251, 42.0921)
Luminance0.8163 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCF798 #C398F7
analogous
#F7F398 #CCF798 #9CF798
triadic
#CCF798 #98CCF7 #F798CC
tetradic
#CCF798 #98F7F3 #C398F7 #F7989C
square
#CCF798 #98F7F3 #C398F7 #F7989C
split-complementary
#CCF798 #989CF7 #F398F7
monochromatic
#94EE26 #B0F35F #CCF798 #E8FBD1 #F1FDE3

Accessibility & contrast

On white

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

On black

17.33
#CCF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCF798
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCF798#FFFFFF#000000##000000
##CCF7981.001.2117.3317.33
#FFFFFF1.211.0021.0021.00
#00000017.3321.001.001.00
##00000017.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccf798;
/* rgb */ color: rgb(204, 247, 152);
/* oklch */ color: oklch(92.4% 0.130 128.5);
Tailwind
colors: {
  custom: {
    50: '#ddfab7',
    500: '#ccf798',
    950: '#000000',
  },
}
SCSS
$custom: #ccf798;
$custom-light: #ddfab7;
$custom-dark: #000000;
JSON
{
  "hex": "#ccf798",
  "rgb": {
    "r": 204,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 87.158,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.92426,
    "c": 0.12954,
    "h": 128.5
  },
  "luminance": 0.81626
}

Semantic roles & 50–950 ramp

primary
#CCF798
secondary
#945DD6
accent
#03E268
background
#FEFFFD
surface
#FCFFF8
border
#D5D7D1
text
#151711
muted
#848581

Preview Lab

Preview with #CCF798

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

Preview Lab → · Contrast checker → · Palette generator →

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