#CCB142#CCB142

#CCB142 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.4% C 0.131 H 95.3°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#CCB142
RGBrgb(204, 177, 66)
HSLhsl(48, 58%, 53%)
HSVhsv(48, 68%, 80%)
CMYKcmyk(0%, 13.2%, 67.6%, 20%)
CIE-LABlab(72.68, -2.58, 58.12)
CIE-LCHlch(72.68, 58.18, 92.54°)
OKLaboklab(76.37% -0.0122 0.1308)
OKLCHoklch(76.37% 0.131 95.3)
XYZxyz(41.6094, 44.6772, 11.5851)
Luminance0.4467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB142 #425DCC
analogous
#CC6C42 #CCB142 #A2CC42
triadic
#CCB142 #42CCB1 #B142CC
tetradic
#CCB142 #42CC6C #425DCC #CC42A2
square
#CCB142 #42CC6C #425DCC #CC42A2
split-complementary
#CCB142 #42A2CC #6C42CC
monochromatic
#74641F #A48D2C #CCB142 #D9C572 #E6D9A2

Accessibility & contrast

On white

2.11
#CCB142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.93
#CCB142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB142
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB142#FFFFFF#000000##000000
##CCB1421.002.119.939.93
#FFFFFF2.111.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD34
Deuteranopia (green-blind)
#CAB648
Tritanopia (blue-blind)
#DCA49A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb142;
/* rgb */ color: rgb(204, 177, 66);
/* oklch */ color: oklch(76.4% 0.131 95.3);
Tailwind
colors: {
  custom: {
    50: '#dfc87c',
    500: '#ccb142',
    950: '#000000',
  },
}
SCSS
$custom: #ccb142;
$custom-light: #dfc87c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb142",
  "rgb": {
    "r": 204,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 48.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.76365,
    "c": 0.13138,
    "h": 95.3
  },
  "luminance": 0.44675
}

Semantic roles & 50–950 ramp

primary
#CCB142
secondary
#97A3D3
accent
#65E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB142

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

Preview Lab → · Contrast checker → · Palette generator →

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