#CCBF48#CCBF48

#CCBF48 is a light, vivid yellow. Relative luminance 0.506; OKLCH L 79.3% C 0.138 H 103.1°. Best body text is #000000 at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#CCBF48
RGBrgb(204, 191, 72)
HSLhsl(54, 56%, 54%)
HSVhsv(54, 65%, 80%)
CMYKcmyk(0%, 6.4%, 64.7%, 20%)
CIE-LABlab(76.42, -9.51, 59.52)
CIE-LCHlch(76.42, 60.28, 99.07°)
OKLaboklab(79.34% -0.0313 0.1347)
OKLCHoklch(79.34% 0.138 103.1)
XYZxyz(44.7041, 50.5686, 13.5356)
Luminance0.5057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBF48 #4855CC
analogous
#CC7D48 #CCBF48 #97CC48
triadic
#CCBF48 #48CCBF #BF48CC
tetradic
#CCBF48 #48CC7D #4855CC #CC4897
square
#CCBF48 #48CC7D #4855CC #CC4897
split-complementary
#CCBF48 #4897CC #7D48CC
monochromatic
#787021 #A89C2F #CCBF48 #D9D078 #E7E0A8

Accessibility & contrast

On white

1.89
#CCBF48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.11
#CCBF48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBF48
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBF48#FFFFFF#000000##000000
##CCBF481.001.8911.1111.11
#FFFFFF1.891.0021.0021.00
#00000011.1121.001.001.00
##00000011.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB939
Deuteranopia (green-blind)
#D4BF4F
Tritanopia (blue-blind)
#DBB2A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #ccbf48;
/* rgb */ color: rgb(204, 191, 72);
/* oklch */ color: oklch(79.3% 0.138 103.1);
Tailwind
colors: {
  custom: {
    50: '#dfd281',
    500: '#ccbf48',
    950: '#000000',
  },
}
SCSS
$custom: #ccbf48;
$custom-light: #dfd281;
$custom-dark: #000000;
JSON
{
  "hex": "#ccbf48",
  "rgb": {
    "r": 204,
    "g": 191,
    "b": 72
  },
  "hsl": {
    "h": 54.091,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.79344,
    "c": 0.13831,
    "h": 103.1
  },
  "luminance": 0.50567
}

Semantic roles & 50–950 ramp

primary
#CCBF48
secondary
#383F80
accent
#57E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCBF48

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

Preview Lab → · Contrast checker → · Palette generator →

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