#CAA838#CAA838

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

Color values

HEX#CAA838
RGBrgb(202, 168, 56)
HSLhsl(46, 58%, 51%)
HSVhsv(46, 72%, 79%)
CMYKcmyk(0%, 16.8%, 72.3%, 20.8%)
CIE-LABlab(70.07, 0.79, 59.48)
CIE-LCHlch(70.07, 59.49, 89.24°)
OKLaboklab(74.24% -0.0036 0.132)
OKLCHoklch(74.24% 0.132 91.5)
XYZxyz(39.0757, 40.8497, 9.5672)
Luminance0.4085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAA838 #385ACA
analogous
#CA5F38 #CAA838 #A3CA38
triadic
#CAA838 #38CAA8 #A838CA
tetradic
#CAA838 #38CA5F #385ACA #CA38A3
square
#CAA838 #38CA5F #385ACA #CA38A3
split-complementary
#CAA838 #38A3CA #5F38CA
monochromatic
#6B591D #9B8129 #CAA838 #D7BD68 #E4D299

Accessibility & contrast

On white

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

On black

9.17
#CAA838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAA838
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAA838#FFFFFF#000000##000000
##CAA8381.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA627
Deuteranopia (green-blind)
#C3AF3E
Tritanopia (blue-blind)
#DA9A92
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #caa838;
/* rgb */ color: rgb(202, 168, 56);
/* oklch */ color: oklch(74.2% 0.132 91.5);
Tailwind
colors: {
  custom: {
    50: '#dec176',
    500: '#caa838',
    950: '#000000',
  },
}
SCSS
$custom: #caa838;
$custom-light: #dec176;
$custom-dark: #000000;
JSON
{
  "hex": "#caa838",
  "rgb": {
    "r": 202,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 46.027,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.74236,
    "c": 0.13202,
    "h": 91.5
  },
  "luminance": 0.40847
}

Semantic roles & 50–950 ramp

primary
#CAA838
secondary
#8E9ECF
accent
#6BE147
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CAA838

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

Preview Lab → · Contrast checker → · Palette generator →

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