#CCB248#CCB248

#CCB248 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.6% C 0.128 H 95.4°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#CCB248
RGBrgb(204, 178, 72)
HSLhsl(48, 56%, 54%)
HSVhsv(48, 65%, 80%)
CMYKcmyk(0%, 12.7%, 64.7%, 20%)
CIE-LABlab(72.99, -2.76, 55.89)
CIE-LCHlch(72.99, 55.95, 92.82°)
OKLaboklab(76.63% -0.012 0.127)
OKLCHoklch(76.63% 0.128 95.4)
XYZxyz(41.9939, 45.1482, 12.6322)
Luminance0.4515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB248 #4862CC
analogous
#CC7048 #CCB248 #A4CC48
triadic
#CCB248 #48CCB2 #B248CC
tetradic
#CCB248 #48CC70 #4862CC #CC48A4
square
#CCB248 #48CC70 #4862CC #CC48A4
split-complementary
#CCB248 #48A4CC #7048CC
monochromatic
#786721 #A8902F #CCB248 #D9C678 #E7DAA8

Accessibility & contrast

On white

2.09
#CCB248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#CCB248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB248
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB248#FFFFFF#000000##000000
##CCB2481.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE3B
Deuteranopia (green-blind)
#CAB74D
Tritanopia (blue-blind)
#DCA59C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb248;
/* rgb */ color: rgb(204, 178, 72);
/* oklch */ color: oklch(76.6% 0.128 95.4);
Tailwind
colors: {
  custom: {
    50: '#dfc880',
    500: '#ccb248',
    950: '#000000',
  },
}
SCSS
$custom: #ccb248;
$custom-light: #dfc880;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb248",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 72
  },
  "hsl": {
    "h": 48.182,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.76626,
    "c": 0.12758,
    "h": 95.4
  },
  "luminance": 0.45146
}

Semantic roles & 50–950 ramp

primary
#CCB248
secondary
#9CA7D4
accent
#66E048
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB248

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

Preview Lab → · Contrast checker → · Palette generator →

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