#BAB298#BAB298

#BAB298 is a light, muted yellow. Relative luminance 0.445; OKLCH L 76.3% C 0.037 H 92.9°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#BAB298
RGBrgb(186, 178, 152)
HSLhsl(46, 20%, 66%)
HSVhsv(46, 18%, 73%)
CMYKcmyk(0%, 4.3%, 18.3%, 27.1%)
CIE-LABlab(72.59, -1.52, 14.33)
CIE-LCHlch(72.59, 14.41, 96.06°)
OKLaboklab(76.32% -0.0019 0.0369)
OKLCHoklch(76.32% 0.037 92.9)
XYZxyz(41.8373, 44.5476, 36.0943)
Luminance0.4455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB298 #98A0BA
analogous
#BAA198 #BAB298 #B1BA98
triadic
#BAB298 #98BAB2 #B298BA
tetradic
#BAB298 #98BAA1 #98A0BA #BA98B1
square
#BAB298 #98BAA1 #98A0BA #BA98B1
split-complementary
#BAB298 #98B1BA #A198BA
monochromatic
#817756 #A19773 #BAB298 #D3CDBD #EBE9E1

Accessibility & contrast

On white

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

On black

9.91
#BAB298 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB298
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB298#FFFFFF#000000##000000
##BAB2981.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8B196
Deuteranopia (green-blind)
#BAB399
Tritanopia (blue-blind)
#C0AEAB
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab298;
/* rgb */ color: rgb(186, 178, 152);
/* oklch */ color: oklch(76.3% 0.037 92.9);
Tailwind
colors: {
  custom: {
    50: '#cfc9b6',
    500: '#bab298',
    950: '#000000',
  },
}
SCSS
$custom: #bab298;
$custom-light: #cfc9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#bab298",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 152
  },
  "hsl": {
    "h": 45.882,
    "s": 19.767,
    "l": 66.275
  },
  "oklch": {
    "l": 0.76322,
    "c": 0.03698,
    "h": 92.9
  },
  "luminance": 0.44547
}

Semantic roles & 50–950 ramp

primary
#BAB298
secondary
#D1D4DC
accent
#5C9E47
background
#FCFCFB
surface
#F9F8F6
border
#D2D1D0
text
#131311
muted
#828280

Preview Lab

Preview with #BAB298

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

Preview Lab → · Contrast checker → · Palette generator →

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