#BAB258#BAB258

#BAB258 is a light, moderate yellow. Relative luminance 0.430; OKLCH L 75.2% C 0.113 H 104.2°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#BAB258
RGBrgb(186, 178, 88)
HSLhsl(55, 42%, 54%)
HSVhsv(55, 53%, 73%)
CMYKcmyk(0%, 4.3%, 52.7%, 27.1%)
CIE-LABlab(71.55, -9.23, 46.45)
CIE-LCHlch(71.55, 47.35, 101.23°)
OKLaboklab(75.15% -0.0276 0.1092)
OKLCHoklch(75.15% 0.113 104.2)
XYZxyz(37.9326, 42.9857, 15.5295)
Luminance0.4298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB258 #5860BA
analogous
#BA8158 #BAB258 #91BA58
triadic
#BAB258 #58BAB2 #B258BA
tetradic
#BAB258 #58BA81 #5860BA #BA5891
square
#BAB258 #58BA81 #5860BA #BA5891
split-complementary
#BAB258 #5891BA #8158BA
monochromatic
#6B662C #978F3E #BAB258 #CCC683 #DEDAAF

Accessibility & contrast

On white

2.19
#BAB258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.60
#BAB258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB258
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB258#FFFFFF#000000##000000
##BAB2581.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAD50
Deuteranopia (green-blind)
#C2B15C
Tritanopia (blue-blind)
#C6A89E
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab258;
/* rgb */ color: rgb(186, 178, 88);
/* oklch */ color: oklch(75.2% 0.113 104.2);
Tailwind
colors: {
  custom: {
    50: '#d1c88a',
    500: '#bab258',
    950: '#000000',
  },
}
SCSS
$custom: #bab258;
$custom-light: #d1c88a;
$custom-dark: #000000;
JSON
{
  "hex": "#bab258",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 88
  },
  "hsl": {
    "h": 55.102,
    "s": 41.525,
    "l": 53.725
  },
  "oklch": {
    "l": 0.75151,
    "c": 0.11265,
    "h": 104.2
  },
  "luminance": 0.42984
}

Semantic roles & 50–950 ramp

primary
#BAB258
secondary
#A2A5CC
accent
#60D156
background
#FDFCF8
surface
#FAF8F0
border
#D3D1CB
text
#14130C
muted
#83827D

Preview Lab

Preview with #BAB258

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

Preview Lab → · Contrast checker → · Palette generator →

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