#CAB45F#CAB45F

#CAB45F is a light, moderate yellow. Relative luminance 0.460; OKLCH L 77.1% C 0.109 H 95.2°. Best body text is #000000 at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#CAB45F
RGBrgb(202, 180, 95)
HSLhsl(48, 50%, 58%)
HSVhsv(48, 53%, 79%)
CMYKcmyk(0%, 10.9%, 53%, 20.8%)
CIE-LABlab(73.56, -2.97, 45.77)
CIE-LCHlch(73.56, 45.86, 93.71°)
OKLaboklab(77.11% -0.0098 0.1081)
OKLCHoklch(77.11% 0.109 95.2)
XYZxyz(42.7455, 46.0271, 17.4568)
Luminance0.4602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB45F #5F75CA
analogous
#CA7E5F #CAB45F #AACA5F
triadic
#CAB45F #5FCAB4 #B45FCA
tetradic
#CAB45F #5FCA7E #5F75CA #CA5FAA
square
#CAB45F #5FCA7E #5F75CA #CA5FAA
split-complementary
#CAB45F #5FAACA #7E5FCA
monochromatic
#83712B #B1993B #CAB45F #D9CA8D #E8DFBB

Accessibility & contrast

On white

2.06
#CAB45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.20
#CAB45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB45F
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB45F#FFFFFF#000000##000000
##CAB45F1.002.0610.2010.20
#FFFFFF2.061.0021.0021.00
#00000010.2021.001.001.00
##00000010.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3B157
Deuteranopia (green-blind)
#C9B863
Tritanopia (blue-blind)
#D8A9A0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab45f;
/* rgb */ color: rgb(202, 180, 95);
/* oklch */ color: oklch(77.1% 0.109 95.2);
Tailwind
colors: {
  custom: {
    50: '#dcca8e',
    500: '#cab45f',
    950: '#000000',
  },
}
SCSS
$custom: #cab45f;
$custom-light: #dcca8e;
$custom-dark: #000000;
JSON
{
  "hex": "#cab45f",
  "rgb": {
    "r": 202,
    "g": 180,
    "b": 95
  },
  "hsl": {
    "h": 47.664,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.77112,
    "c": 0.10858,
    "h": 95.2
  },
  "luminance": 0.46025
}

Semantic roles & 50–950 ramp

primary
#CAB45F
secondary
#ADB6D8
accent
#6BDA4E
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130C
muted
#83827D

Preview Lab

Preview with #CAB45F

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

Preview Lab → · Contrast checker → · Palette generator →

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