#CCD948#CCD948

#CCD948 is a very light, vivid yellow. Relative luminance 0.629; OKLCH L 84.9% C 0.165 H 114.3°. Best body text is #000000 at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#CCD948
RGBrgb(204, 217, 72)
HSLhsl(65, 66%, 57%)
HSVhsv(65, 67%, 85%)
CMYKcmyk(6%, 0%, 66.8%, 14.9%)
CIE-LABlab(83.41, -22.48, 66.75)
CIE-LCHlch(83.41, 70.43, 108.61°)
OKLaboklab(84.92% -0.0678 0.15)
OKLCHoklch(84.92% 0.165 114.3)
XYZxyz(50.8857, 62.9319, 15.5961)
Luminance0.6293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD948 #5548D9
analogous
#D99E48 #CCD948 #84D948
triadic
#CCD948 #48CCD9 #D948CC
tetradic
#CCD948 #48D99E #5548D9 #D94884
square
#CCD948 #48D99E #5548D9 #D94884
split-complementary
#CCD948 #4884D9 #9E48D9
monochromatic
#808A1D #AFBD27 #CCD948 #DAE47B #E8EEAD

Accessibility & contrast

On white

1.55
#CCD948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.59
#CCD948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD948
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD948#FFFFFF#000000##000000
##CCD9481.001.5513.5913.59
#FFFFFF1.551.0021.0021.00
#00000013.5921.001.001.00
##00000013.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF32
Deuteranopia (green-blind)
#E8D153
Tritanopia (blue-blind)
#D9CDBC
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #ccd948;
/* rgb */ color: rgb(204, 217, 72);
/* oklch */ color: oklch(84.9% 0.165 114.3);
Tailwind
colors: {
  custom: {
    50: '#dfe483',
    500: '#ccd948',
    950: '#000000',
  },
}
SCSS
$custom: #ccd948;
$custom-light: #dfe483;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd948",
  "rgb": {
    "r": 204,
    "g": 217,
    "b": 72
  },
  "hsl": {
    "h": 65.379,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.84922,
    "c": 0.16458,
    "h": 114.3
  },
  "luminance": 0.62931
}

Semantic roles & 50–950 ramp

primary
#CCD948
secondary
#3D3590
accent
#3FE94E
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CCD948

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

Preview Lab → · Contrast checker → · Palette generator →

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