#CAB258#CAB258

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

Color values

HEX#CAB258
RGBrgb(202, 178, 88)
HSLhsl(47, 52%, 57%)
HSVhsv(47, 56%, 79%)
CMYKcmyk(0%, 11.9%, 56.4%, 20.8%)
CIE-LABlab(72.96, -2.49, 48.45)
CIE-LCHlch(72.96, 48.52, 92.94°)
OKLaboklab(76.61% -0.0092 0.1133)
OKLCHoklch(76.61% 0.114 94.6)
XYZxyz(42.0406, 45.1039, 15.7221)
Luminance0.4510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB258 #5870CA
analogous
#CA7958 #CAB258 #A9CA58
triadic
#CAB258 #58CAB2 #B258CA
tetradic
#CAB258 #58CA79 #5870CA #CA58A9
square
#CAB258 #58CA79 #5870CA #CA58A9
split-complementary
#CAB258 #58A9CA #7958CA
monochromatic
#7F6D28 #AE9537 #CAB258 #D9C786 #E7DDB5

Accessibility & contrast

On white

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

On black

10.02
#CAB258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB258
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB258#FFFFFF#000000##000000
##CAB2581.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF4F
Deuteranopia (green-blind)
#C8B65C
Tritanopia (blue-blind)
#D8A69E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab258;
/* rgb */ color: rgb(202, 178, 88);
/* oklch */ color: oklch(76.6% 0.114 94.6);
Tailwind
colors: {
  custom: {
    50: '#ddc88a',
    500: '#cab258',
    950: '#000000',
  },
}
SCSS
$custom: #cab258;
$custom-light: #ddc88a;
$custom-dark: #000000;
JSON
{
  "hex": "#cab258",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 88
  },
  "hsl": {
    "h": 47.368,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.7661,
    "c": 0.11364,
    "h": 94.6
  },
  "luminance": 0.45102
}

Semantic roles & 50–950 ramp

primary
#CAB258
secondary
#A8B1D6
accent
#6BDB4D
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130C
muted
#83827D

Preview Lab

Preview with #CAB258

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

Preview Lab → · Contrast checker → · Palette generator →

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