#CCD797#CCD797

#CCD797 is a very light, moderate yellow-green. Relative luminance 0.637; OKLCH L 85.5% C 0.085 H 116.2°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#CCD797
RGBrgb(204, 215, 151)
HSLhsl(70, 44%, 72%)
HSVhsv(70, 30%, 84%)
CMYKcmyk(5.1%, 0%, 29.8%, 15.7%)
CIE-LABlab(83.80, -14.03, 30.42)
CIE-LCHlch(83.80, 33.50, 114.76°)
OKLaboklab(85.53% -0.0374 0.0761)
OKLCHoklch(85.53% 0.085 116.2)
XYZxyz(54.7880, 63.6730, 38.6760)
Luminance0.6367 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD797 #A297D7
analogous
#D7C297 #CCD797 #ACD797
triadic
#CCD797 #97CCD7 #D797CC
tetradic
#CCD797 #97D7C2 #A297D7 #D797AC
square
#CCD797 #97D7C2 #A297D7 #D797AC
split-complementary
#CCD797 #97ACD7 #C297D7
monochromatic
#9DB044 #B6C66B #CCD797 #E2E8C3 #F4F6E9

Accessibility & contrast

On white

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

On black

13.73
#CCD797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD797
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD797#FFFFFF#000000##000000
##CCD7971.001.5313.7313.73
#FFFFFF1.531.0021.0021.00
#00000013.7321.001.001.00
##00000013.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0D093
Deuteranopia (green-blind)
#DFD19A
Tritanopia (blue-blind)
#D3D0C6
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #ccd797;
/* rgb */ color: rgb(204, 215, 151);
/* oklch */ color: oklch(85.5% 0.085 116.2);
Tailwind
colors: {
  custom: {
    50: '#dce3b6',
    500: '#ccd797',
    950: '#000000',
  },
}
SCSS
$custom: #ccd797;
$custom-light: #dce3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd797",
  "rgb": {
    "r": 204,
    "g": 215,
    "b": 151
  },
  "hsl": {
    "h": 70.313,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.85533,
    "c": 0.08475,
    "h": 116.2
  },
  "luminance": 0.63673
}

Semantic roles & 50–950 ramp

primary
#CCD797
secondary
#7164AE
accent
#2EB846
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CCD797

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

Preview Lab → · Contrast checker → · Palette generator →

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