#BAB937#BAB937

#BAB937 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.3% C 0.147 H 109.0°. Best body text is #000000 at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#BAB937
RGBrgb(186, 185, 55)
HSLhsl(60, 54%, 47%)
HSVhsv(60, 70%, 73%)
CMYKcmyk(0%, 0.5%, 70.4%, 27.1%)
CIE-LABlab(73.16, -15.05, 62.42)
CIE-LCHlch(73.16, 64.21, 103.56°)
OKLaboklab(76.35% -0.0477 0.1386)
OKLCHoklch(76.35% 0.147 109)
XYZxyz(38.2896, 45.4140, 10.3625)
Luminance0.4541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB937 #3738BA
analogous
#BA7837 #BAB937 #7ABA37
triadic
#BAB937 #37BAB9 #B937BA
tetradic
#BAB937 #37BA78 #3738BA #BA377A
square
#BAB937 #37BA78 #3738BA #BA377A
split-complementary
#BAB937 #377ABA #7837BA
monochromatic
#5C5B1B #8B8A29 #BAB937 #D0CF5F #DEDD8E

Accessibility & contrast

On white

2.08
#BAB937 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.08
#BAB937 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB937
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB937#FFFFFF#000000##000000
##BAB9371.002.0810.0810.08
#FFFFFF2.081.0021.0021.00
#00000010.0821.001.001.00
##00000010.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B121
Deuteranopia (green-blind)
#CAB640
Tritanopia (blue-blind)
#C7ADA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab937;
/* rgb */ color: rgb(186, 185, 55);
/* oklch */ color: oklch(76.3% 0.147 109.0);
Tailwind
colors: {
  custom: {
    50: '#d2cd76',
    500: '#bab937',
    950: '#000000',
  },
}
SCSS
$custom: #bab937;
$custom-light: #d2cd76;
$custom-dark: #000000;
JSON
{
  "hex": "#bab937",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 55
  },
  "hsl": {
    "h": 59.542,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.76348,
    "c": 0.14655,
    "h": 109
  },
  "luminance": 0.45413
}

Semantic roles & 50–950 ramp

primary
#BAB937
secondary
#8585C8
accent
#4BDE4A
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB937

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

Preview Lab → · Contrast checker → · Palette generator →

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