#CCB03B#CCB03B

#CCB03B is a light, vivid yellow. Relative luminance 0.442; OKLCH L 76.1% C 0.136 H 95.3°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#CCB03B
RGBrgb(204, 176, 59)
HSLhsl(48, 59%, 52%)
HSVhsv(48, 71%, 80%)
CMYKcmyk(0%, 13.7%, 71.1%, 20%)
CIE-LABlab(72.37, -2.43, 60.64)
CIE-LCHlch(72.37, 60.69, 92.29°)
OKLaboklab(76.1% -0.0125 0.1349)
OKLCHoklch(76.1% 0.136 95.3)
XYZxyz(41.2187, 44.2060, 10.4984)
Luminance0.4420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB03B #3B57CC
analogous
#CC683B #CCB03B #A0CC3B
triadic
#CCB03B #3BCCB0 #B03BCC
tetradic
#CCB03B #3BCC68 #3B57CC #CC3BA0
square
#CCB03B #3BCC68 #3B57CC #CC3BA0
split-complementary
#CCB03B #3BA0CC #683BCC
monochromatic
#70601D #A0892A #CCB03B #D9C46C #E5D79C

Accessibility & contrast

On white

2.13
#CCB03B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#CCB03B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB03B
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB03B#FFFFFF#000000##000000
##CCB03B1.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC2A
Deuteranopia (green-blind)
#C9B542
Tritanopia (blue-blind)
#DCA299
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccb03b;
/* rgb */ color: rgb(204, 176, 59);
/* oklch */ color: oklch(76.1% 0.136 95.3);
Tailwind
colors: {
  custom: {
    50: '#dfc778',
    500: '#ccb03b',
    950: '#000000',
  },
}
SCSS
$custom: #ccb03b;
$custom-light: #dfc778;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb03b",
  "rgb": {
    "r": 204,
    "g": 176,
    "b": 59
  },
  "hsl": {
    "h": 48.414,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.76101,
    "c": 0.1355,
    "h": 95.3
  },
  "luminance": 0.44204
}

Semantic roles & 50–950 ramp

primary
#CCB03B
secondary
#929ED1
accent
#64E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB03B

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

Preview Lab → · Contrast checker → · Palette generator →

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