#CAB252#CAB252

#CAB252 is a light, moderate yellow. Relative luminance 0.450; OKLCH L 76.5% C 0.119 H 95.4°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#CAB252
RGBrgb(202, 178, 82)
HSLhsl(48, 53%, 56%)
HSVhsv(48, 59%, 79%)
CMYKcmyk(0%, 11.9%, 59.4%, 20.8%)
CIE-LABlab(72.90, -2.94, 51.22)
CIE-LCHlch(72.90, 51.30, 93.28°)
OKLaboklab(76.54% -0.0112 0.1185)
OKLCHoklch(76.54% 0.119 95.4)
XYZxyz(41.8022, 45.0085, 14.4666)
Luminance0.4501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB252 #526ACA
analogous
#CA7652 #CAB252 #A6CA52
triadic
#CAB252 #52CAB2 #B252CA
tetradic
#CAB252 #52CA76 #526ACA #CA52A6
square
#CAB252 #52CA76 #526ACA #CA52A6
split-complementary
#CAB252 #52A6CA #7652CA
monochromatic
#7C6B26 #AB9334 #CAB252 #D8C781 #E7DCB0

Accessibility & contrast

On white

2.10
#CAB252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.00
#CAB252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB252
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB252#FFFFFF#000000##000000
##CAB2521.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF48
Deuteranopia (green-blind)
#C9B656
Tritanopia (blue-blind)
#D9A69D
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab252;
/* rgb */ color: rgb(202, 178, 82);
/* oklch */ color: oklch(76.5% 0.119 95.4);
Tailwind
colors: {
  custom: {
    50: '#ddc886',
    500: '#cab252',
    950: '#000000',
  },
}
SCSS
$custom: #cab252;
$custom-light: #ddc886;
$custom-dark: #000000;
JSON
{
  "hex": "#cab252",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 48,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.7654,
    "c": 0.11904,
    "h": 95.4
  },
  "luminance": 0.45007
}

Semantic roles & 50–950 ramp

primary
#CAB252
secondary
#A3ADD5
accent
#68DD4B
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB252

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

Preview Lab → · Contrast checker → · Palette generator →

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