#CAAF42#CAAF42

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

Color values

HEX#CAAF42
RGBrgb(202, 175, 66)
HSLhsl(48, 56%, 53%)
HSVhsv(48, 67%, 79%)
CMYKcmyk(0%, 13.4%, 67.3%, 20.8%)
CIE-LABlab(71.97, -2.39, 57.33)
CIE-LCHlch(71.97, 57.38, 92.39°)
OKLaboklab(75.76% -0.0115 0.1292)
OKLCHoklch(75.76% 0.13 95.1)
XYZxyz(40.6724, 43.6120, 11.4288)
Luminance0.4361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAAF42 #425DCA
analogous
#CA6B42 #CAAF42 #A1CA42
triadic
#CAAF42 #42CAAF #AF42CA
tetradic
#CAAF42 #42CA6B #425DCA #CA42A1
square
#CAAF42 #42CA6B #425DCA #CA42A1
split-complementary
#CAAF42 #42A1CA #6B42CA
monochromatic
#726120 #A28A2D #CAAF42 #D7C372 #E5D7A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAAF42#FFFFFF#000000##000000
##CAAF421.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)
#C0AC34
Deuteranopia (green-blind)
#C7B448
Tritanopia (blue-blind)
#DAA298
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #caaf42;
/* rgb */ color: rgb(202, 175, 66);
/* oklch */ color: oklch(75.8% 0.130 95.1);
Tailwind
colors: {
  custom: {
    50: '#dec67c',
    500: '#caaf42',
    950: '#000000',
  },
}
SCSS
$custom: #caaf42;
$custom-light: #dec67c;
$custom-dark: #000000;
JSON
{
  "hex": "#caaf42",
  "rgb": {
    "r": 202,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 48.088,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.75759,
    "c": 0.12969,
    "h": 95.1
  },
  "luminance": 0.4361
}

Semantic roles & 50–950 ramp

primary
#CAAF42
secondary
#96A2D1
accent
#66DF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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