#CCC248#CCC248

#CCC248 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.141 H 104.6°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#CCC248
RGBrgb(204, 194, 72)
HSLhsl(55, 56%, 54%)
HSVhsv(55, 65%, 80%)
CMYKcmyk(0%, 4.9%, 64.7%, 20%)
CIE-LABlab(77.22, -11.04, 60.36)
CIE-LCHlch(77.22, 61.36, 100.37°)
OKLaboklab(79.98% -0.0356 0.1365)
OKLCHoklch(79.98% 0.141 104.6)
XYZxyz(45.3650, 51.8905, 13.7559)
Luminance0.5189 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC248 #4852CC
analogous
#CC8048 #CCC248 #94CC48
triadic
#CCC248 #48CCC2 #C248CC
tetradic
#CCC248 #48CC80 #4852CC #CC4894
square
#CCC248 #48CC80 #4852CC #CC4894
split-complementary
#CCC248 #4894CC #8048CC
monochromatic
#787221 #A89F2F #CCC248 #D9D278 #E7E2A8

Accessibility & contrast

On white

1.85
#CCC248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.38
#CCC248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC248
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC248#FFFFFF#000000##000000
##CCC2481.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB38
Deuteranopia (green-blind)
#D6C14F
Tritanopia (blue-blind)
#DBB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc248;
/* rgb */ color: rgb(204, 194, 72);
/* oklch */ color: oklch(80.0% 0.141 104.6);
Tailwind
colors: {
  custom: {
    50: '#dfd481',
    500: '#ccc248',
    950: '#000000',
  },
}
SCSS
$custom: #ccc248;
$custom-light: #dfd481;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc248",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 55.455,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.79978,
    "c": 0.14107,
    "h": 104.6
  },
  "luminance": 0.51889
}

Semantic roles & 50–950 ramp

primary
#CCC248
secondary
#383D80
accent
#54E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC248

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

Preview Lab → · Contrast checker → · Palette generator →

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