#CCB242#CCB242

#CCB242 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.6% C 0.132 H 96.0°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#CCB242
RGBrgb(204, 178, 66)
HSLhsl(49, 58%, 53%)
HSVhsv(49, 68%, 80%)
CMYKcmyk(0%, 12.7%, 67.6%, 20%)
CIE-LABlab(72.94, -3.11, 58.39)
CIE-LCHlch(72.94, 58.48, 93.05°)
OKLaboklab(76.57% -0.0137 0.1314)
OKLCHoklch(76.57% 0.132 96)
XYZxyz(41.8076, 45.0736, 11.6512)
Luminance0.4507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB242 #425CCC
analogous
#CC6D42 #CCB242 #A1CC42
triadic
#CCB242 #42CCB2 #B242CC
tetradic
#CCB242 #42CC6D #425CCC #CC42A1
square
#CCB242 #42CC6D #425CCC #CC42A1
split-complementary
#CCB242 #42A1CC #6D42CC
monochromatic
#74641F #A48E2C #CCB242 #D9C672 #E6D9A2

Accessibility & contrast

On white

2.10
#CCB242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.01
#CCB242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB242
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB242#FFFFFF#000000##000000
##CCB2421.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE33
Deuteranopia (green-blind)
#CAB748
Tritanopia (blue-blind)
#DCA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb242;
/* rgb */ color: rgb(204, 178, 66);
/* oklch */ color: oklch(76.6% 0.132 96.0);
Tailwind
colors: {
  custom: {
    50: '#dfc87c',
    500: '#ccb242',
    950: '#000000',
  },
}
SCSS
$custom: #ccb242;
$custom-light: #dfc87c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb242",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 48.696,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.76572,
    "c": 0.13209,
    "h": 96
  },
  "luminance": 0.45072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCB242

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

Preview Lab → · Contrast checker → · Palette generator →

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