#CAB152#CAB152

#CAB152 is a light, moderate yellow. Relative luminance 0.446; OKLCH L 76.3% C 0.118 H 94.7°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#CAB152
RGBrgb(202, 177, 82)
HSLhsl(48, 53%, 56%)
HSVhsv(48, 59%, 79%)
CMYKcmyk(0%, 12.4%, 59.4%, 20.8%)
CIE-LABlab(72.64, -2.41, 50.92)
CIE-LCHlch(72.64, 50.98, 92.71°)
OKLaboklab(76.33% -0.0097 0.1179)
OKLCHoklch(76.33% 0.118 94.7)
XYZxyz(41.6040, 44.6120, 14.4006)
Luminance0.4461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB152 #526BCA
analogous
#CA7552 #CAB152 #A7CA52
triadic
#CAB152 #52CAB1 #B152CA
tetradic
#CAB152 #52CA75 #526BCA #CA52A7
square
#CAB152 #52CA75 #526BCA #CA52A7
split-complementary
#CAB152 #52A7CA #7552CA
monochromatic
#7C6A26 #AB9234 #CAB152 #D8C681 #E7DBB0

Accessibility & contrast

On white

2.12
#CAB152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#CAB152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB152
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB152#FFFFFF#000000##000000
##CAB1521.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AE48
Deuteranopia (green-blind)
#C8B656
Tritanopia (blue-blind)
#D9A59C
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab152;
/* rgb */ color: rgb(202, 177, 82);
/* oklch */ color: oklch(76.3% 0.118 94.7);
Tailwind
colors: {
  custom: {
    50: '#ddc886',
    500: '#cab152',
    950: '#000000',
  },
}
SCSS
$custom: #cab152;
$custom-light: #ddc886;
$custom-dark: #000000;
JSON
{
  "hex": "#cab152",
  "rgb": {
    "r": 202,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 47.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.76333,
    "c": 0.11828,
    "h": 94.7
  },
  "luminance": 0.4461
}

Semantic roles & 50–950 ramp

primary
#CAB152
secondary
#A3ADD5
accent
#6ADD4B
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB152

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

Preview Lab → · Contrast checker → · Palette generator →

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