#CCAB2D#CCAB2D

#CCAB2D is a light, vivid yellow. Relative luminance 0.422; OKLCH L 75.0% C 0.140 H 93.4°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#CCAB2D
RGBrgb(204, 171, 45)
HSLhsl(48, 64%, 49%)
HSVhsv(48, 78%, 80%)
CMYKcmyk(0%, 16.2%, 77.9%, 20%)
CIE-LABlab(70.98, -0.39, 64.43)
CIE-LCHlch(70.98, 64.44, 90.35°)
OKLaboklab(74.98% -0.0082 0.1403)
OKLCHoklch(74.98% 0.14 93.4)
XYZxyz(39.9407, 42.1550, 8.5151)
Luminance0.4215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAB2D #2D4ECC
analogous
#CC5C2D #CCAB2D #9ECC2D
triadic
#CCAB2D #2DCCAB #AB2DCC
tetradic
#CCAB2D #2DCC5C #2D4ECC #CC2D9E
square
#CCAB2D #2DCC5C #2D4ECC #CC2D9E
split-complementary
#CCAB2D #2D9ECC #5C2DCC
monochromatic
#685717 #9A8122 #CCAB2D #DBC05B #E6D48D

Accessibility & contrast

On white

2.23
#CCAB2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#CCAB2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAB2D
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAB2D#FFFFFF#000000##000000
##CCAB2D1.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA811
Deuteranopia (green-blind)
#C6B235
Tritanopia (blue-blind)
#DD9D93
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ccab2d;
/* rgb */ color: rgb(204, 171, 45);
/* oklch */ color: oklch(75.0% 0.140 93.4);
Tailwind
colors: {
  custom: {
    50: '#e0c370',
    500: '#ccab2d',
    950: '#000000',
  },
}
SCSS
$custom: #ccab2d;
$custom-light: #e0c370;
$custom-dark: #000000;
JSON
{
  "hex": "#ccab2d",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 45
  },
  "hsl": {
    "h": 47.547,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74976,
    "c": 0.14049,
    "h": 93.4
  },
  "luminance": 0.42153
}

Semantic roles & 50–950 ramp

primary
#CCAB2D
secondary
#8594D0
accent
#63E741
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CCAB2D

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

Preview Lab → · Contrast checker → · Palette generator →

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