#CAA840#CAA840

#CAA840 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 74.3% C 0.127 H 90.7°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#CAA840
RGBrgb(202, 168, 64)
HSLhsl(45, 57%, 52%)
HSVhsv(45, 68%, 79%)
CMYKcmyk(0%, 16.8%, 68.3%, 20.8%)
CIE-LABlab(70.13, 1.21, 56.26)
CIE-LCHlch(70.13, 56.27, 88.77°)
OKLaboklab(74.3% -0.0014 0.1266)
OKLCHoklch(74.3% 0.127 90.7)
XYZxyz(39.2872, 40.9343, 10.6813)
Luminance0.4093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAA840 #4062CA
analogous
#CA6340 #CAA840 #A7CA40
triadic
#CAA840 #40CAA8 #A840CA
tetradic
#CAA840 #40CA63 #4062CA #CA40A7
square
#CAA840 #40CA63 #4062CA #CA40A7
split-complementary
#CAA840 #40A7CA #6340CA
monochromatic
#705C1F #A0842C #CAA840 #D7BE70 #E5D4A0

Accessibility & contrast

On white

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

On black

9.19
#CAA840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAA840
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAA840#FFFFFF#000000##000000
##CAA8401.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA633
Deuteranopia (green-blind)
#C2AF45
Tritanopia (blue-blind)
#DA9B92
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #caa840;
/* rgb */ color: rgb(202, 168, 64);
/* oklch */ color: oklch(74.3% 0.127 90.7);
Tailwind
colors: {
  custom: {
    50: '#dec17a',
    500: '#caa840',
    950: '#000000',
  },
}
SCSS
$custom: #caa840;
$custom-light: #dec17a;
$custom-dark: #000000;
JSON
{
  "hex": "#caa840",
  "rgb": {
    "r": 202,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 45.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.74302,
    "c": 0.1266,
    "h": 90.7
  },
  "luminance": 0.40932
}

Semantic roles & 50–950 ramp

primary
#CAA840
secondary
#95A4D1
accent
#6DE048
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CAA840

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

Preview Lab → · Contrast checker → · Palette generator →

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