#CCB339#CCB339

#CCB339 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.7% C 0.139 H 97.2°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#CCB339
RGBrgb(204, 179, 57)
HSLhsl(50, 59%, 51%)
HSVhsv(50, 72%, 80%)
CMYKcmyk(0%, 12.3%, 72.1%, 20%)
CIE-LABlab(73.14, -4.10, 62.18)
CIE-LCHlch(73.14, 62.31, 93.77°)
OKLaboklab(76.71% -0.0175 0.1378)
OKLCHoklch(76.71% 0.139 97.2)
XYZxyz(41.7625, 45.3751, 10.4286)
Luminance0.4537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB339 #3952CC
analogous
#CC6939 #CCB339 #9BCC39
triadic
#CCB339 #39CCB3 #B339CC
tetradic
#CCB339 #39CC69 #3952CC #CC399B
square
#CCB339 #39CC69 #3952CC #CC399B
split-complementary
#CCB339 #399BCC #6939CC
monochromatic
#6E601C #9F8B29 #CCB339 #D9C66A #E5D89A

Accessibility & contrast

On white

2.08
#CCB339 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#CCB339 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB339
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB339#FFFFFF#000000##000000
##CCB3391.002.0810.0710.07
#FFFFFF2.081.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF26
Deuteranopia (green-blind)
#CBB740
Tritanopia (blue-blind)
#DCA59B
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #ccb339;
/* rgb */ color: rgb(204, 179, 57);
/* oklch */ color: oklch(76.7% 0.139 97.2);
Tailwind
colors: {
  custom: {
    50: '#dfc977',
    500: '#ccb339',
    950: '#000000',
  },
}
SCSS
$custom: #ccb339;
$custom-light: #dfc977;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb339",
  "rgb": {
    "r": 204,
    "g": 179,
    "b": 57
  },
  "hsl": {
    "h": 49.796,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.76708,
    "c": 0.13891,
    "h": 97.2
  },
  "luminance": 0.45373
}

Semantic roles & 50–950 ramp

primary
#CCB339
secondary
#909BD1
accent
#60E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB339

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

Preview Lab → · Contrast checker → · Palette generator →

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