#CCB342#CCB342

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

Color values

HEX#CCB342
RGBrgb(204, 179, 66)
HSLhsl(49, 58%, 53%)
HSVhsv(49, 68%, 80%)
CMYKcmyk(0%, 12.3%, 67.6%, 20%)
CIE-LABlab(73.20, -3.63, 58.67)
CIE-LCHlch(73.20, 58.78, 93.54°)
OKLaboklab(76.78% -0.0152 0.132)
OKLCHoklch(76.78% 0.133 96.6)
XYZxyz(42.0073, 45.4730, 11.7177)
Luminance0.4547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB342 #425BCC
analogous
#CC6E42 #CCB342 #A0CC42
triadic
#CCB342 #42CCB3 #B342CC
tetradic
#CCB342 #42CC6E #425BCC #CC42A0
square
#CCB342 #42CC6E #425BCC #CC42A0
split-complementary
#CCB342 #42A0CC #6E42CC
monochromatic
#74651F #A48F2C #CCB342 #D9C672 #E6DAA2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB342#FFFFFF#000000##000000
##CCB3421.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)
#C5AF33
Deuteranopia (green-blind)
#CBB748
Tritanopia (blue-blind)
#DCA69C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #ccb342;
/* rgb */ color: rgb(204, 179, 66);
/* oklch */ color: oklch(76.8% 0.133 96.6);
Tailwind
colors: {
  custom: {
    50: '#dfc97c',
    500: '#ccb342',
    950: '#000000',
  },
}
SCSS
$custom: #ccb342;
$custom-light: #dfc97c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb342",
  "rgb": {
    "r": 204,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 49.13,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.76779,
    "c": 0.13282,
    "h": 96.6
  },
  "luminance": 0.45471
}

Semantic roles & 50–950 ramp

primary
#CCB342
secondary
#97A2D3
accent
#63E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB342

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

Preview Lab → · Contrast checker → · Palette generator →

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