#BAB87F#BAB87F

#BAB87F is a light, moderate yellow. Relative luminance 0.463; OKLCH L 77.0% C 0.076 H 106.4°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#BAB87F
RGBrgb(186, 184, 127)
HSLhsl(58, 30%, 61%)
HSVhsv(58, 32%, 73%)
CMYKcmyk(0%, 1.1%, 31.7%, 27.1%)
CIE-LABlab(73.71, -8.21, 29.28)
CIE-LCHlch(73.71, 30.41, 105.66°)
OKLaboklab(77.05% -0.0214 0.0728)
OKLCHoklch(77.05% 0.076 106.4)
XYZxyz(41.2213, 46.2531, 26.8308)
Luminance0.4625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB87F #7F81BA
analogous
#BA9B7F #BAB87F #9FBA7F
triadic
#BAB87F #7FBAB8 #B87FBA
tetradic
#BAB87F #7FBA9B #7F81BA #BA7F9F
square
#BAB87F #7FBA9B #7F81BA #BA7F9F
split-complementary
#BAB87F #7F9FBA #9B7FBA
monochromatic
#7C7A43 #A4A158 #BAB87F #CFCEA7 #E5E4CF

Accessibility & contrast

On white

2.05
#BAB87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#BAB87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB87F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB87F#FFFFFF#000000##000000
##BAB87F1.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1B47B
Deuteranopia (green-blind)
#C3B681
Tritanopia (blue-blind)
#C2B1A9
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #bab87f;
/* rgb */ color: rgb(186, 184, 127);
/* oklch */ color: oklch(77.0% 0.076 106.4);
Tailwind
colors: {
  custom: {
    50: '#cfcda4',
    500: '#bab87f',
    950: '#000000',
  },
}
SCSS
$custom: #bab87f;
$custom-light: #cfcda4;
$custom-dark: #000000;
JSON
{
  "hex": "#bab87f",
  "rgb": {
    "r": 186,
    "g": 184,
    "b": 127
  },
  "hsl": {
    "h": 57.966,
    "s": 29.949,
    "l": 61.373
  },
  "oklch": {
    "l": 0.77047,
    "c": 0.07591,
    "h": 106.4
  },
  "luminance": 0.46252
}

Semantic roles & 50–950 ramp

primary
#BAB87F
secondary
#BFC0D5
accent
#41A93D
background
#FCFCFA
surface
#F9F8F4
border
#D2D1CE
text
#14130F
muted
#82827F

Preview Lab

Preview with #BAB87F

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

Preview Lab → · Contrast checker → · Palette generator →

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