#CCC148#CCC148

#CCC148 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.140 H 104.1°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CCC148
RGBrgb(204, 193, 72)
HSLhsl(55, 56%, 54%)
HSVhsv(55, 65%, 80%)
CMYKcmyk(0%, 5.4%, 64.7%, 20%)
CIE-LABlab(76.95, -10.53, 60.08)
CIE-LCHlch(76.95, 61.00, 99.94°)
OKLaboklab(79.77% -0.0342 0.1359)
OKLCHoklch(79.77% 0.14 104.1)
XYZxyz(45.1432, 51.4469, 13.6819)
Luminance0.5144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC148 #4853CC
analogous
#CC7F48 #CCC148 #95CC48
triadic
#CCC148 #48CCC1 #C148CC
tetradic
#CCC148 #48CC7F #4853CC #CC4895
square
#CCC148 #48CC7F #4853CC #CC4895
split-complementary
#CCC148 #4895CC #7F48CC
monochromatic
#787121 #A89E2F #CCC148 #D9D178 #E7E1A8

Accessibility & contrast

On white

1.86
#CCC148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#CCC148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC148
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC148#FFFFFF#000000##000000
##CCC1481.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB38
Deuteranopia (green-blind)
#D5C14F
Tritanopia (blue-blind)
#DBB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc148;
/* rgb */ color: rgb(204, 193, 72);
/* oklch */ color: oklch(79.8% 0.140 104.1);
Tailwind
colors: {
  custom: {
    50: '#dfd381',
    500: '#ccc148',
    950: '#000000',
  },
}
SCSS
$custom: #ccc148;
$custom-light: #dfd381;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc148",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 72
  },
  "hsl": {
    "h": 55,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.79767,
    "c": 0.14014,
    "h": 104.1
  },
  "luminance": 0.51445
}

Semantic roles & 50–950 ramp

primary
#CCC148
secondary
#383E80
accent
#55E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC148

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

Preview Lab → · Contrast checker → · Palette generator →

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