#CAAA31#CAAA31

#CAAA31 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.6% C 0.137 H 93.4°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#CAAA31
RGBrgb(202, 170, 49)
HSLhsl(47, 61%, 49%)
HSVhsv(47, 76%, 79%)
CMYKcmyk(0%, 15.8%, 75.7%, 20.8%)
CIE-LABlab(70.55, -0.58, 62.58)
CIE-LCHlch(70.55, 62.58, 90.53°)
OKLaboklab(74.6% -0.0082 0.1372)
OKLCHoklch(74.6% 0.137 93.4)
XYZxyz(39.2884, 41.5301, 8.8519)
Luminance0.4153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAAA31 #3151CA
analogous
#CA5E31 #CAAA31 #9ECA31
triadic
#CAAA31 #31CAAA #AA31CA
tetradic
#CAAA31 #31CA5E #3151CA #CA319E
square
#CAAA31 #31CA5E #3151CA #CA319E
split-complementary
#CAAA31 #319ECA #5E31CA
monochromatic
#675719 #998125 #CAAA31 #D8BF60 #E4D391

Accessibility & contrast

On white

2.26
#CAAA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#CAAA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAAA31
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAAA31#FFFFFF#000000##000000
##CAAA311.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA71B
Deuteranopia (green-blind)
#C5B138
Tritanopia (blue-blind)
#DB9C93
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #caaa31;
/* rgb */ color: rgb(202, 170, 49);
/* oklch */ color: oklch(74.6% 0.137 93.4);
Tailwind
colors: {
  custom: {
    50: '#dec272',
    500: '#caaa31',
    950: '#000000',
  },
}
SCSS
$custom: #caaa31;
$custom-light: #dec272;
$custom-dark: #000000;
JSON
{
  "hex": "#caaa31",
  "rgb": {
    "r": 202,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 47.451,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.74597,
    "c": 0.13743,
    "h": 93.4
  },
  "luminance": 0.41528
}

Semantic roles & 50–950 ramp

primary
#CAAA31
secondary
#8897CF
accent
#65E444
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CAAA31

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

Preview Lab → · Contrast checker → · Palette generator →

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