#CCB340#CCB340

#CCB340 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.8% C 0.134 H 96.7°. Best body text is #000000 at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#CCB340
RGBrgb(204, 179, 64)
HSLhsl(49, 58%, 53%)
HSVhsv(49, 69%, 80%)
CMYKcmyk(0%, 12.3%, 68.6%, 20%)
CIE-LABlab(73.19, -3.74, 59.47)
CIE-LCHlch(73.19, 59.59, 93.60°)
OKLaboklab(76.76% -0.0157 0.1333)
OKLCHoklch(76.76% 0.134 96.7)
XYZxyz(41.9494, 45.4499, 11.4126)
Luminance0.4545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB340 #4059CC
analogous
#CC6D40 #CCB340 #9FCC40
triadic
#CCB340 #40CCB3 #B340CC
tetradic
#CCB340 #40CC6D #4059CC #CC409F
square
#CCB340 #40CC6D #4059CC #CC409F
split-complementary
#CCB340 #409FCC #6D40CC
monochromatic
#73641F #A38E2C #CCB340 #D9C670 #E6D9A1

Accessibility & contrast

On white

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

On black

10.09
#CCB340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB340
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB340#FFFFFF#000000##000000
##CCB3401.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#CBB746
Tritanopia (blue-blind)
#DCA69B
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #ccb340;
/* rgb */ color: rgb(204, 179, 64);
/* oklch */ color: oklch(76.8% 0.134 96.7);
Tailwind
colors: {
  custom: {
    50: '#dfc97b',
    500: '#ccb340',
    950: '#000000',
  },
}
SCSS
$custom: #ccb340;
$custom-light: #dfc97b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb340",
  "rgb": {
    "r": 204,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 49.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76762,
    "c": 0.13425,
    "h": 96.7
  },
  "luminance": 0.45448
}

Semantic roles & 50–950 ramp

primary
#CCB340
secondary
#95A0D2
accent
#62E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB340

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

Preview Lab → · Contrast checker → · Palette generator →

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