#BAB837#BAB837

#BAB837 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.1% C 0.146 H 108.5°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#BAB837
RGBrgb(186, 184, 55)
HSLhsl(59, 54%, 47%)
HSVhsv(59, 70%, 73%)
CMYKcmyk(0%, 1.1%, 70.4%, 27.1%)
CIE-LABlab(72.89, -14.54, 62.15)
CIE-LCHlch(72.89, 63.83, 103.17°)
OKLaboklab(76.13% -0.0462 0.138)
OKLCHoklch(76.13% 0.146 108.5)
XYZxyz(38.0812, 44.9971, 10.2930)
Luminance0.4500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB837 #3739BA
analogous
#BA7737 #BAB837 #7BBA37
triadic
#BAB837 #37BAB8 #B837BA
tetradic
#BAB837 #37BA77 #3739BA #BA377B
square
#BAB837 #37BA77 #3739BA #BA377B
split-complementary
#BAB837 #377BBA #7737BA
monochromatic
#5C5B1B #8B8929 #BAB837 #D0CE5F #DEDC8E

Accessibility & contrast

On white

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

On black

10.00
#BAB837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB837
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB837#FFFFFF#000000##000000
##BAB8371.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B021
Deuteranopia (green-blind)
#C9B540
Tritanopia (blue-blind)
#C7AC9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab837;
/* rgb */ color: rgb(186, 184, 55);
/* oklch */ color: oklch(76.1% 0.146 108.5);
Tailwind
colors: {
  custom: {
    50: '#d2cd76',
    500: '#bab837',
    950: '#000000',
  },
}
SCSS
$custom: #bab837;
$custom-light: #d2cd76;
$custom-dark: #000000;
JSON
{
  "hex": "#bab837",
  "rgb": {
    "r": 186,
    "g": 184,
    "b": 55
  },
  "hsl": {
    "h": 59.084,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.7613,
    "c": 0.14555,
    "h": 108.5
  },
  "luminance": 0.44996
}

Semantic roles & 50–950 ramp

primary
#BAB837
secondary
#8586C8
accent
#4CDE4A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB837

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

Preview Lab → · Contrast checker → · Palette generator →

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