#BAB440#BAB440

#BAB440 is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.3% C 0.135 H 106.4°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#BAB440
RGBrgb(186, 180, 64)
HSLhsl(57, 49%, 49%)
HSVhsv(57, 66%, 73%)
CMYKcmyk(0%, 3.2%, 65.6%, 27.1%)
CIE-LABlab(71.86, -12.00, 57.60)
CIE-LCHlch(71.86, 58.84, 101.77°)
OKLaboklab(75.33% -0.0382 0.1299)
OKLCHoklch(75.33% 0.135 106.4)
XYZxyz(37.4977, 43.4531, 11.2615)
Luminance0.4345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB440 #4046BA
analogous
#BA7740 #BAB440 #83BA40
triadic
#BAB440 #40BAB4 #B440BA
tetradic
#BAB440 #40BA77 #4046BA #BA4083
square
#BAB440 #40BA77 #4046BA #BA4083
split-complementary
#BAB440 #4083BA #7740BA
monochromatic
#5F5C21 #8C8830 #BAB440 #CCC76B #DCD899

Accessibility & contrast

On white

2.17
#BAB440 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#BAB440 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB440
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB440#FFFFFF#000000##000000
##BAB4401.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD30
Deuteranopia (green-blind)
#C5B247
Tritanopia (blue-blind)
#C7A89C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab440;
/* rgb */ color: rgb(186, 180, 64);
/* oklch */ color: oklch(75.3% 0.135 106.4);
Tailwind
colors: {
  custom: {
    50: '#d2ca7b',
    500: '#bab440',
    950: '#000000',
  },
}
SCSS
$custom: #bab440;
$custom-light: #d2ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#bab440",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 64
  },
  "hsl": {
    "h": 57.049,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.7533,
    "c": 0.13542,
    "h": 106.4
  },
  "luminance": 0.43452
}

Semantic roles & 50–950 ramp

primary
#BAB440
secondary
#8E91C8
accent
#56D84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB440

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

Preview Lab → · Contrast checker → · Palette generator →

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