#CCD798#CCD798

#CCD798 is a very light, moderate yellow-green. Relative luminance 0.637; OKLCH L 85.6% C 0.084 H 116.3°. Best body text is #000000 at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#CCD798
RGBrgb(204, 215, 152)
HSLhsl(70, 44%, 72%)
HSVhsv(70, 29%, 84%)
CMYKcmyk(5.1%, 0%, 29.3%, 15.7%)
CIE-LABlab(83.81, -13.90, 29.93)
CIE-LCHlch(83.81, 33.00, 114.91°)
OKLaboklab(85.55% -0.037 0.0749)
OKLCHoklch(85.55% 0.084 116.3)
XYZxyz(54.8696, 63.7056, 39.1055)
Luminance0.6371 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD798 #A398D7
analogous
#D7C398 #CCD798 #ADD798
triadic
#CCD798 #98CCD7 #D798CC
tetradic
#CCD798 #98D7C3 #A398D7 #D798AD
square
#CCD798 #98D7C3 #A398D7 #D798AD
split-complementary
#CCD798 #98ADD7 #C398D7
monochromatic
#9DB044 #B6C66C #CCD798 #E2E8C4 #F4F6E9

Accessibility & contrast

On white

1.53
#CCD798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.74
#CCD798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD798
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD798#FFFFFF#000000##000000
##CCD7981.001.5313.7413.74
#FFFFFF1.531.0021.0021.00
#00000013.7421.001.001.00
##00000013.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0D194
Deuteranopia (green-blind)
#DFD19B
Tritanopia (blue-blind)
#D3D0C7
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #ccd798;
/* rgb */ color: rgb(204, 215, 152);
/* oklch */ color: oklch(85.6% 0.084 116.3);
Tailwind
colors: {
  custom: {
    50: '#dce3b6',
    500: '#ccd798',
    950: '#000000',
  },
}
SCSS
$custom: #ccd798;
$custom-light: #dce3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd798",
  "rgb": {
    "r": 204,
    "g": 215,
    "b": 152
  },
  "hsl": {
    "h": 70.476,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.85552,
    "c": 0.08355,
    "h": 116.3
  },
  "luminance": 0.63705
}

Semantic roles & 50–950 ramp

primary
#CCD798
secondary
#7265AE
accent
#2EB746
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CCD798

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

Preview Lab → · Contrast checker → · Palette generator →

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