#BAB840#BAB840

#BAB840 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.2% C 0.139 H 108.4°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#BAB840
RGBrgb(186, 184, 64)
HSLhsl(59, 49%, 49%)
HSVhsv(59, 66%, 73%)
CMYKcmyk(0%, 1.1%, 65.6%, 27.1%)
CIE-LABlab(72.95, -14.05, 58.73)
CIE-LCHlch(72.95, 60.39, 103.45°)
OKLaboklab(76.2% -0.0439 0.1323)
OKLCHoklch(76.2% 0.139 108.4)
XYZxyz(38.3169, 45.0914, 11.5346)
Luminance0.4509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB840 #4042BA
analogous
#BA7B40 #BAB840 #7FBA40
triadic
#BAB840 #40BAB8 #B840BA
tetradic
#BAB840 #40BA7B #4042BA #BA407F
square
#BAB840 #40BA7B #4042BA #BA407F
split-complementary
#BAB840 #407FBA #7B40BA
monochromatic
#5F5E21 #8C8B30 #BAB840 #CCCB6B #DCDB99

Accessibility & contrast

On white

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

On black

10.02
#BAB840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB840
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB840#FFFFFF#000000##000000
##BAB8401.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C9B548
Tritanopia (blue-blind)
#C7ADA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab840;
/* rgb */ color: rgb(186, 184, 64);
/* oklch */ color: oklch(76.2% 0.139 108.4);
Tailwind
colors: {
  custom: {
    50: '#d2cd7b',
    500: '#bab840',
    950: '#000000',
  },
}
SCSS
$custom: #bab840;
$custom-light: #d2cd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#bab840",
  "rgb": {
    "r": 186,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 59.016,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.76199,
    "c": 0.13942,
    "h": 108.4
  },
  "luminance": 0.4509
}

Semantic roles & 50–950 ramp

primary
#BAB840
secondary
#8E8FC8
accent
#52D84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB840

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

Preview Lab → · Contrast checker → · Palette generator →

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