#CCA940#CCA940

#CCA940 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.7% C 0.128 H 90.3°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#CCA940
RGBrgb(204, 169, 64)
HSLhsl(45, 58%, 53%)
HSVhsv(45, 69%, 80%)
CMYKcmyk(0%, 17.2%, 68.6%, 20%)
CIE-LABlab(70.58, 1.54, 56.79)
CIE-LCHlch(70.58, 56.81, 88.45°)
OKLaboklab(74.71% -0.0006 0.1277)
OKLCHoklch(74.71% 0.128 90.3)
XYZxyz(40.0174, 41.5858, 10.7686)
Luminance0.4158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA940 #4063CC
analogous
#CC6340 #CCA940 #A9CC40
triadic
#CCA940 #40CCA9 #A940CC
tetradic
#CCA940 #40CC63 #4063CC #CC40A9
square
#CCA940 #40CC63 #4063CC #CC40A9
split-complementary
#CCA940 #40A9CC #6340CC
monochromatic
#735E1F #A3852C #CCA940 #D9BF70 #E6D4A1

Accessibility & contrast

On white

2.25
#CCA940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#CCA940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA940
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA940#FFFFFF#000000##000000
##CCA9401.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA733
Deuteranopia (green-blind)
#C4B145
Tritanopia (blue-blind)
#DC9B93
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cca940;
/* rgb */ color: rgb(204, 169, 64);
/* oklch */ color: oklch(74.7% 0.128 90.3);
Tailwind
colors: {
  custom: {
    50: '#dfc27a',
    500: '#cca940',
    950: '#000000',
  },
}
SCSS
$custom: #cca940;
$custom-light: #dfc27a;
$custom-dark: #000000;
JSON
{
  "hex": "#cca940",
  "rgb": {
    "r": 204,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 45,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.74706,
    "c": 0.12765,
    "h": 90.3
  },
  "luminance": 0.41583
}

Semantic roles & 50–950 ramp

primary
#CCA940
secondary
#95A5D2
accent
#6DE147
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CCA940

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

Preview Lab → · Contrast checker → · Palette generator →

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