#CAA226#CAA226

#CAA226 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.9% C 0.139 H 89.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#CAA226
RGBrgb(202, 162, 38)
HSLhsl(45, 68%, 47%)
HSVhsv(45, 81%, 79%)
CMYKcmyk(0%, 19.8%, 81.2%, 20.8%)
CIE-LABlab(68.42, 3.28, 64.33)
CIE-LCHlch(68.42, 64.42, 87.08°)
OKLaboklab(72.9% 0.0017 0.1387)
OKLCHoklch(72.9% 0.139 89.3)
XYZxyz(37.6296, 38.5397, 7.2903)
Luminance0.3854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAA226 #264ECA
analogous
#CA5026 #CAA226 #A0CA26
triadic
#CAA226 #26CAA2 #A226CA
tetradic
#CAA226 #26CA50 #264ECA #CA26A0
square
#CAA226 #26CA50 #264ECA #CA26A0
split-complementary
#CAA226 #26A0CA #5026CA
monochromatic
#634F13 #96791C #CAA226 #DEBB4F #E8CF83

Accessibility & contrast

On white

2.41
#CAA226 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#CAA226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAA226
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAA226#FFFFFF#000000##000000
##CAA2261.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A002
Deuteranopia (green-blind)
#BFAB2E
Tritanopia (blue-blind)
#DB938B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #caa226;
/* rgb */ color: rgb(202, 162, 38);
/* oklch */ color: oklch(72.9% 0.139 89.3);
Tailwind
colors: {
  custom: {
    50: '#dfbd6c',
    500: '#caa226',
    950: '#000000',
  },
}
SCSS
$custom: #caa226;
$custom-light: #dfbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#caa226",
  "rgb": {
    "r": 202,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 45.366,
    "s": 68.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72899,
    "c": 0.13867,
    "h": 89.3
  },
  "luminance": 0.38537
}

Semantic roles & 50–950 ramp

primary
#CAA226
secondary
#7B90D1
accent
#67EB3D
background
#FEFBF6
surface
#FDF6EC
border
#D5D0C7
text
#161207
muted
#84817A

Preview Lab

Preview with #CAA226

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

Preview Lab → · Contrast checker → · Palette generator →

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