#CCAA38#CCAA38

#CCAA38 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.8% C 0.134 H 91.8°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CCAA38
RGBrgb(204, 170, 56)
HSLhsl(46, 59%, 51%)
HSVhsv(46, 73%, 80%)
CMYKcmyk(0%, 16.7%, 72.5%, 20%)
CIE-LABlab(70.78, 0.60, 60.25)
CIE-LCHlch(70.78, 60.26, 89.43°)
OKLaboklab(74.85% -0.0042 0.1335)
OKLCHoklch(74.85% 0.134 91.8)
XYZxyz(39.9926, 41.8747, 9.7168)
Luminance0.4187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAA38 #385ACC
analogous
#CC6038 #CCAA38 #A4CC38
triadic
#CCAA38 #38CCAA #AA38CC
tetradic
#CCAA38 #38CC60 #385ACC #CC38A4
square
#CCAA38 #38CC60 #385ACC #CC38A4
split-complementary
#CCAA38 #38A4CC #6038CC
monochromatic
#6E5B1C #9E8329 #CCAA38 #D8BF69 #E5D499

Accessibility & contrast

On white

2.24
#CCAA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#CCAA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAA38
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAA38#FFFFFF#000000##000000
##CCAA381.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA827
Deuteranopia (green-blind)
#C5B13E
Tritanopia (blue-blind)
#DD9C93
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ccaa38;
/* rgb */ color: rgb(204, 170, 56);
/* oklch */ color: oklch(74.8% 0.134 91.8);
Tailwind
colors: {
  custom: {
    50: '#e0c276',
    500: '#ccaa38',
    950: '#000000',
  },
}
SCSS
$custom: #ccaa38;
$custom-light: #e0c276;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaa38",
  "rgb": {
    "r": 204,
    "g": 170,
    "b": 56
  },
  "hsl": {
    "h": 46.216,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.74845,
    "c": 0.1336,
    "h": 91.8
  },
  "luminance": 0.41872
}

Semantic roles & 50–950 ramp

primary
#CCAA38
secondary
#8F9ED1
accent
#69E245
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CCAA38

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

Preview Lab → · Contrast checker → · Palette generator →

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