#CCD796#CCD796

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

Color values

HEX#CCD796
RGBrgb(204, 215, 150)
HSLhsl(70, 45%, 72%)
HSVhsv(70, 30%, 84%)
CMYKcmyk(5.1%, 0%, 30.2%, 15.7%)
CIE-LABlab(83.78, -14.16, 30.91)
CIE-LCHlch(83.78, 34.00, 114.62°)
OKLaboklab(85.51% -0.0378 0.0772)
OKLCHoklch(85.51% 0.086 116.1)
XYZxyz(54.7072, 63.6406, 38.2501)
Luminance0.6364 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD796 #A196D7
analogous
#D7C296 #CCD796 #ACD796
triadic
#CCD796 #96CCD7 #D796CC
tetradic
#CCD796 #96D7C2 #A196D7 #D796AC
square
#CCD796 #96D7C2 #A196D7 #D796AC
split-complementary
#CCD796 #96ACD7 #C296D7
monochromatic
#9DB043 #B6C66A #CCD796 #E2E8C2 #F4F7E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCD796#FFFFFF#000000##000000
##CCD7961.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)
#E0D092
Deuteranopia (green-blind)
#DFD199
Tritanopia (blue-blind)
#D3D0C6
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #ccd796;
/* rgb */ color: rgb(204, 215, 150);
/* oklch */ color: oklch(85.5% 0.086 116.1);
Tailwind
colors: {
  custom: {
    50: '#dce3b5',
    500: '#ccd796',
    950: '#000000',
  },
}
SCSS
$custom: #ccd796;
$custom-light: #dce3b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd796",
  "rgb": {
    "r": 204,
    "g": 215,
    "b": 150
  },
  "hsl": {
    "h": 70.154,
    "s": 44.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.85514,
    "c": 0.08596,
    "h": 116.1
  },
  "luminance": 0.6364
}

Semantic roles & 50–950 ramp

primary
#CCD796
secondary
#7063AE
accent
#2EB845
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CCD796

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

Preview Lab → · Contrast checker → · Palette generator →

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