#CAB151#CAB151

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

Color values

HEX#CAB151
RGBrgb(202, 177, 81)
HSLhsl(48, 53%, 55%)
HSVhsv(48, 60%, 79%)
CMYKcmyk(0%, 12.4%, 59.9%, 20.8%)
CIE-LABlab(72.63, -2.48, 51.38)
CIE-LCHlch(72.63, 51.44, 92.77°)
OKLaboklab(76.32% -0.01 0.1187)
OKLCHoklch(76.32% 0.119 94.8)
XYZxyz(41.5662, 44.5969, 14.2016)
Luminance0.4460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB151 #516ACA
analogous
#CA7451 #CAB151 #A7CA51
triadic
#CAB151 #51CAB1 #B151CA
tetradic
#CAB151 #51CA74 #516ACA #CA51A7
square
#CAB151 #51CA74 #516ACA #CA51A7
split-complementary
#CAB151 #51A7CA #7451CA
monochromatic
#7B6925 #AA9234 #CAB151 #D8C680 #E7DBAF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB151#FFFFFF#000000##000000
##CAB1511.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)
#C1AE47
Deuteranopia (green-blind)
#C8B655
Tritanopia (blue-blind)
#D9A59C
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab151;
/* rgb */ color: rgb(202, 177, 81);
/* oklch */ color: oklch(76.3% 0.119 94.8);
Tailwind
colors: {
  custom: {
    50: '#ddc885',
    500: '#cab151',
    950: '#000000',
  },
}
SCSS
$custom: #cab151;
$custom-light: #ddc885;
$custom-dark: #000000;
JSON
{
  "hex": "#cab151",
  "rgb": {
    "r": 202,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 47.603,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.76322,
    "c": 0.11915,
    "h": 94.8
  },
  "luminance": 0.44595
}

Semantic roles & 50–950 ramp

primary
#CAB151
secondary
#A2ADD5
accent
#69DD4B
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB151

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

Preview Lab → · Contrast checker → · Palette generator →

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