#CCB140#CCB140

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

Color values

HEX#CCB140
RGBrgb(204, 177, 64)
HSLhsl(48, 58%, 53%)
HSVhsv(48, 69%, 80%)
CMYKcmyk(0%, 13.2%, 68.6%, 20%)
CIE-LABlab(72.66, -2.69, 58.94)
CIE-LCHlch(72.66, 59.00, 92.62°)
OKLaboklab(76.35% -0.0127 0.1322)
OKLCHoklch(76.35% 0.133 95.5)
XYZxyz(41.5514, 44.6540, 11.2800)
Luminance0.4465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB140 #405BCC
analogous
#CC6B40 #CCB140 #A1CC40
triadic
#CCB140 #40CCB1 #B140CC
tetradic
#CCB140 #40CC6B #405BCC #CC40A1
square
#CCB140 #40CC6B #405BCC #CC40A1
split-complementary
#CCB140 #40A1CC #6B40CC
monochromatic
#73631F #A38C2C #CCB140 #D9C570 #E6D8A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCB140#FFFFFF#000000##000000
##CCB1401.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)
#C3AD31
Deuteranopia (green-blind)
#CAB646
Tritanopia (blue-blind)
#DCA49A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb140;
/* rgb */ color: rgb(204, 177, 64);
/* oklch */ color: oklch(76.3% 0.133 95.5);
Tailwind
colors: {
  custom: {
    50: '#dfc87b',
    500: '#ccb140',
    950: '#000000',
  },
}
SCSS
$custom: #ccb140;
$custom-light: #dfc87b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb140",
  "rgb": {
    "r": 204,
    "g": 177,
    "b": 64
  },
  "hsl": {
    "h": 48.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76348,
    "c": 0.1328,
    "h": 95.5
  },
  "luminance": 0.44652
}

Semantic roles & 50–950 ramp

primary
#CCB140
secondary
#95A1D2
accent
#64E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB140

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

Preview Lab → · Contrast checker → · Palette generator →

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