#CAA831#CAA831

#CAA831 is a light, vivid yellow. Relative luminance 0.408; OKLCH L 74.2% C 0.136 H 92.2°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#CAA831
RGBrgb(202, 168, 49)
HSLhsl(47, 61%, 49%)
HSVhsv(47, 76%, 79%)
CMYKcmyk(0%, 16.8%, 75.7%, 20.8%)
CIE-LABlab(70.03, 0.48, 62.09)
CIE-LCHlch(70.03, 62.09, 89.56°)
OKLaboklab(74.19% -0.0052 0.1361)
OKLCHoklch(74.19% 0.136 92.2)
XYZxyz(38.9163, 40.7859, 8.7278)
Luminance0.4078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAA831 #3153CA
analogous
#CA5C31 #CAA831 #A0CA31
triadic
#CAA831 #31CAA8 #A831CA
tetradic
#CAA831 #31CA5C #3153CA #CA31A0
square
#CAA831 #31CA5C #3153CA #CA31A0
split-complementary
#CAA831 #31A0CA #5C31CA
monochromatic
#675619 #997F25 #CAA831 #D8BE60 #E4D291

Accessibility & contrast

On white

2.29
#CAA831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#CAA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAA831
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAA831#FFFFFF#000000##000000
##CAA8311.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA51B
Deuteranopia (green-blind)
#C3AF38
Tritanopia (blue-blind)
#DB9A91
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #caa831;
/* rgb */ color: rgb(202, 168, 49);
/* oklch */ color: oklch(74.2% 0.136 92.2);
Tailwind
colors: {
  custom: {
    50: '#dec172',
    500: '#caa831',
    950: '#000000',
  },
}
SCSS
$custom: #caa831;
$custom-light: #dec172;
$custom-dark: #000000;
JSON
{
  "hex": "#caa831",
  "rgb": {
    "r": 202,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 46.667,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.74186,
    "c": 0.13624,
    "h": 92.2
  },
  "luminance": 0.40784
}

Semantic roles & 50–950 ramp

primary
#CAA831
secondary
#8898CF
accent
#67E444
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CAA831

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

Preview Lab → · Contrast checker → · Palette generator →

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