#CCB148#CCB148

#CCB148 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 76.4% C 0.127 H 94.7°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#CCB148
RGBrgb(204, 177, 72)
HSLhsl(48, 56%, 54%)
HSVhsv(48, 65%, 80%)
CMYKcmyk(0%, 13.2%, 64.7%, 20%)
CIE-LABlab(72.73, -2.23, 55.61)
CIE-LCHlch(72.73, 55.65, 92.30°)
OKLaboklab(76.42% -0.0105 0.1264)
OKLCHoklch(76.42% 0.127 94.7)
XYZxyz(41.7956, 44.7517, 12.5661)
Luminance0.4475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB148 #4863CC
analogous
#CC6F48 #CCB148 #A5CC48
triadic
#CCB148 #48CCB1 #B148CC
tetradic
#CCB148 #48CC6F #4863CC #CC48A5
square
#CCB148 #48CC6F #4863CC #CC48A5
split-complementary
#CCB148 #48A5CC #6F48CC
monochromatic
#786621 #A88F2F #CCB148 #D9C578 #E7DAA8

Accessibility & contrast

On white

2.11
#CCB148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#CCB148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB148
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB148#FFFFFF#000000##000000
##CCB1481.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AE3C
Deuteranopia (green-blind)
#C9B64D
Tritanopia (blue-blind)
#DCA49B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb148;
/* rgb */ color: rgb(204, 177, 72);
/* oklch */ color: oklch(76.4% 0.127 94.7);
Tailwind
colors: {
  custom: {
    50: '#dfc880',
    500: '#ccb148',
    950: '#000000',
  },
}
SCSS
$custom: #ccb148;
$custom-light: #dfc880;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb148",
  "rgb": {
    "r": 204,
    "g": 177,
    "b": 72
  },
  "hsl": {
    "h": 47.727,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.76419,
    "c": 0.12686,
    "h": 94.7
  },
  "luminance": 0.4475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCB148

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

Preview Lab → · Contrast checker → · Palette generator →

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