#BAB040#BAB040

#BAB040 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.5% C 0.132 H 104.2°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#BAB040
RGBrgb(186, 176, 64)
HSLhsl(55, 49%, 49%)
HSVhsv(55, 66%, 73%)
CMYKcmyk(0%, 5.4%, 65.6%, 27.1%)
CIE-LABlab(70.78, -9.93, 56.47)
CIE-LCHlch(70.78, 57.34, 99.97°)
OKLaboklab(74.47% -0.0323 0.1276)
OKLCHoklch(74.47% 0.132 104.2)
XYZxyz(36.7019, 41.8613, 10.9963)
Luminance0.4186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB040 #404ABA
analogous
#BA7340 #BAB040 #87BA40
triadic
#BAB040 #40BAB0 #B040BA
tetradic
#BAB040 #40BA73 #404ABA #BA4087
square
#BAB040 #40BA73 #404ABA #BA4087
split-complementary
#BAB040 #4087BA #7340BA
monochromatic
#5F5A21 #8C8530 #BAB040 #CCC46B #DCD699

Accessibility & contrast

On white

2.24
#BAB040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#BAB040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB040
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB040#FFFFFF#000000##000000
##BAB0401.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#C2B047
Tritanopia (blue-blind)
#C7A499
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab040;
/* rgb */ color: rgb(186, 176, 64);
/* oklch */ color: oklch(74.5% 0.132 104.2);
Tailwind
colors: {
  custom: {
    50: '#d2c77b',
    500: '#bab040',
    950: '#000000',
  },
}
SCSS
$custom: #bab040;
$custom-light: #d2c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#bab040",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 55.082,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.74465,
    "c": 0.13157,
    "h": 104.2
  },
  "luminance": 0.4186
}

Semantic roles & 50–950 ramp

primary
#BAB040
secondary
#8E93C8
accent
#5BD84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB040

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

Preview Lab → · Contrast checker → · Palette generator →

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