#CAB548#CAB548

#CAB548 is a light, vivid yellow. Relative luminance 0.461; OKLCH L 77.1% C 0.130 H 98.3°. Best body text is #000000 at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#CAB548
RGBrgb(202, 181, 72)
HSLhsl(50, 55%, 54%)
HSVhsv(50, 64%, 79%)
CMYKcmyk(0%, 10.4%, 64.4%, 20.8%)
CIE-LABlab(73.59, -5.18, 56.48)
CIE-LCHlch(73.59, 56.71, 95.24°)
OKLaboklab(77.06% -0.0188 0.1283)
OKLCHoklch(77.06% 0.13 98.3)
XYZxyz(42.0525, 46.0741, 12.8078)
Luminance0.4607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB548 #485DCA
analogous
#CA7448 #CAB548 #9ECA48
triadic
#CAB548 #48CAB5 #B548CA
tetradic
#CAB548 #48CA74 #485DCA #CA489E
square
#CAB548 #48CA74 #485DCA #CA489E
split-complementary
#CAB548 #489ECA #7448CA
monochromatic
#766822 #A59230 #CAB548 #D8C877 #E5DBA7

Accessibility & contrast

On white

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

On black

10.21
#CAB548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB548
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB548#FFFFFF#000000##000000
##CAB5481.002.0610.2110.21
#FFFFFF2.061.0021.0021.00
#00000010.2121.001.001.00
##00000010.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B13B
Deuteranopia (green-blind)
#CBB84E
Tritanopia (blue-blind)
#D9A89E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab548;
/* rgb */ color: rgb(202, 181, 72);
/* oklch */ color: oklch(77.1% 0.130 98.3);
Tailwind
colors: {
  custom: {
    50: '#ddca80',
    500: '#cab548',
    950: '#000000',
  },
}
SCSS
$custom: #cab548;
$custom-light: #ddca80;
$custom-dark: #000000;
JSON
{
  "hex": "#cab548",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 72
  },
  "hsl": {
    "h": 50.308,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.77061,
    "c": 0.12971,
    "h": 98.3
  },
  "luminance": 0.46072
}

Semantic roles & 50–950 ramp

primary
#CAB548
secondary
#9BA4D3
accent
#61DE49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB548

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

Preview Lab → · Contrast checker → · Palette generator →

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