#CAAF40#CAAF40

#CAAF40 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.7% C 0.131 H 95.3°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#CAAF40
RGBrgb(202, 175, 64)
HSLhsl(48, 57%, 52%)
HSVhsv(48, 68%, 79%)
CMYKcmyk(0%, 13.4%, 68.3%, 20.8%)
CIE-LABlab(71.95, -2.50, 58.15)
CIE-LCHlch(71.95, 58.20, 92.47°)
OKLaboklab(75.74% -0.0121 0.1306)
OKLCHoklch(75.74% 0.131 95.3)
XYZxyz(40.6145, 43.5888, 11.1237)
Luminance0.4359 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAAF40 #405BCA
analogous
#CA6A40 #CAAF40 #A0CA40
triadic
#CAAF40 #40CAAF #AF40CA
tetradic
#CAAF40 #40CA6A #405BCA #CA40A0
square
#CAAF40 #40CA6A #405BCA #CA40A0
split-complementary
#CAAF40 #40A0CA #6A40CA
monochromatic
#70611F #A08A2C #CAAF40 #D7C370 #E5D7A0

Accessibility & contrast

On white

2.16
#CAAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#CAAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAAF40
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAAF40#FFFFFF#000000##000000
##CAAF401.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB31
Deuteranopia (green-blind)
#C7B446
Tritanopia (blue-blind)
#DAA298
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #caaf40;
/* rgb */ color: rgb(202, 175, 64);
/* oklch */ color: oklch(75.7% 0.131 95.3);
Tailwind
colors: {
  custom: {
    50: '#dec67b',
    500: '#caaf40',
    950: '#000000',
  },
}
SCSS
$custom: #caaf40;
$custom-light: #dec67b;
$custom-dark: #000000;
JSON
{
  "hex": "#caaf40",
  "rgb": {
    "r": 202,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 48.261,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.75741,
    "c": 0.13114,
    "h": 95.3
  },
  "luminance": 0.43587
}

Semantic roles & 50–950 ramp

primary
#CAAF40
secondary
#95A1D1
accent
#66E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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