#CAB256#CAB256

#CAB256 is a light, moderate yellow. Relative luminance 0.451; OKLCH L 76.6% C 0.115 H 94.9°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#CAB256
RGBrgb(202, 178, 86)
HSLhsl(48, 52%, 56%)
HSVhsv(48, 57%, 79%)
CMYKcmyk(0%, 11.9%, 57.4%, 20.8%)
CIE-LABlab(72.94, -2.64, 49.38)
CIE-LCHlch(72.94, 49.45, 93.06°)
OKLaboklab(76.59% -0.0099 0.1151)
OKLCHoklch(76.59% 0.115 94.9)
XYZxyz(41.9589, 45.0712, 15.2918)
Luminance0.4507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB256 #566ECA
analogous
#CA7856 #CAB256 #A8CA56
triadic
#CAB256 #56CAB2 #B256CA
tetradic
#CAB256 #56CA78 #566ECA #CA56A8
square
#CAB256 #56CA78 #566ECA #CA56A8
split-complementary
#CAB256 #56A8CA #7856CA
monochromatic
#7E6C28 #AD9436 #CAB256 #D9C785 #E7DCB3

Accessibility & contrast

On white

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

On black

10.01
#CAB256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB256
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB256#FFFFFF#000000##000000
##CAB2561.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cab256;
/* rgb */ color: rgb(202, 178, 86);
/* oklch */ color: oklch(76.6% 0.115 94.9);
Tailwind
colors: {
  custom: {
    50: '#ddc888',
    500: '#cab256',
    950: '#000000',
  },
}
SCSS
$custom: #cab256;
$custom-light: #ddc888;
$custom-dark: #000000;
JSON
{
  "hex": "#cab256",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 86
  },
  "hsl": {
    "h": 47.586,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.76586,
    "c": 0.11547,
    "h": 94.9
  },
  "luminance": 0.45069
}

Semantic roles & 50–950 ramp

primary
#CAB256
secondary
#A6B0D6
accent
#6ADC4C
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130C
muted
#83827D

Preview Lab

Preview with #CAB256

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

Preview Lab → · Contrast checker → · Palette generator →

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