#CCD845#CCD845

#CCD845 is a very light, vivid yellow. Relative luminance 0.624; OKLCH L 84.7% C 0.166 H 114.0°. Best body text is #000000 at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#CCD845
RGBrgb(204, 216, 69)
HSLhsl(65, 65%, 56%)
HSVhsv(65, 68%, 85%)
CMYKcmyk(5.6%, 0%, 68.1%, 15.3%)
CIE-LABlab(83.11, -22.16, 67.58)
CIE-LCHlch(83.11, 71.12, 108.16°)
OKLaboklab(84.68% -0.0672 0.1512)
OKLCHoklch(84.68% 0.166 114)
XYZxyz(50.5333, 62.3797, 15.0076)
Luminance0.6238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD845 #5145D8
analogous
#D89A45 #CCD845 #82D845
triadic
#CCD845 #45CCD8 #D845CC
tetradic
#CCD845 #45D89A #5145D8 #D84582
square
#CCD845 #45D89A #5145D8 #D84582
split-complementary
#CCD845 #4582D8 #9A45D8
monochromatic
#7E861C #ADB927 #CCD845 #DAE378 #E8EDAA

Accessibility & contrast

On white

1.56
#CCD845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.48
#CCD845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD845
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD845#FFFFFF#000000##000000
##CCD8451.001.5613.4813.48
#FFFFFF1.561.0021.0021.00
#00000013.4821.001.001.00
##00000013.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CE2E
Deuteranopia (green-blind)
#E7D050
Tritanopia (blue-blind)
#D9CCBB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #ccd845;
/* rgb */ color: rgb(204, 216, 69);
/* oklch */ color: oklch(84.7% 0.166 114.0);
Tailwind
colors: {
  custom: {
    50: '#dfe381',
    500: '#ccd845',
    950: '#000000',
  },
}
SCSS
$custom: #ccd845;
$custom-light: #dfe381;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd845",
  "rgb": {
    "r": 204,
    "g": 216,
    "b": 69
  },
  "hsl": {
    "h": 64.898,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.84682,
    "c": 0.1655,
    "h": 114
  },
  "luminance": 0.62379
}

Semantic roles & 50–950 ramp

primary
#CCD845
secondary
#3C348D
accent
#40E84D
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CCD845

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

Preview Lab → · Contrast checker → · Palette generator →

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