#BAB642#BAB642

#BAB642 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.8% C 0.136 H 107.3°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#BAB642
RGBrgb(186, 182, 66)
HSLhsl(58, 48%, 49%)
HSVhsv(58, 65%, 73%)
CMYKcmyk(0%, 2.2%, 64.5%, 27.1%)
CIE-LABlab(72.42, -12.91, 57.36)
CIE-LCHlch(72.42, 58.80, 102.68°)
OKLaboklab(75.78% -0.0405 0.1297)
OKLCHoklch(75.78% 0.136 107.3)
XYZxyz(37.9623, 44.2896, 11.7022)
Luminance0.4429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB642 #4246BA
analogous
#BA7A42 #BAB642 #82BA42
triadic
#BAB642 #42BAB6 #B642BA
tetradic
#BAB642 #42BA7A #4246BA #BA4282
square
#BAB642 #42BA7A #4246BA #BA4282
split-complementary
#BAB642 #4282BA #7A42BA
monochromatic
#605E22 #8D8A32 #BAB642 #CBC86E #DBD99B

Accessibility & contrast

On white

2.13
#BAB642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#BAB642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB642
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB642#FFFFFF#000000##000000
##BAB6421.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#C7B449
Tritanopia (blue-blind)
#C7AB9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab642;
/* rgb */ color: rgb(186, 182, 66);
/* oklch */ color: oklch(75.8% 0.136 107.3);
Tailwind
colors: {
  custom: {
    50: '#d2cb7c',
    500: '#bab642',
    950: '#000000',
  },
}
SCSS
$custom: #bab642;
$custom-light: #d2cb7c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab642",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 66
  },
  "hsl": {
    "h": 58,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.75781,
    "c": 0.1359,
    "h": 107.3
  },
  "luminance": 0.44288
}

Semantic roles & 50–950 ramp

primary
#BAB642
secondary
#9092C8
accent
#55D751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB642

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

Preview Lab → · Contrast checker → · Palette generator →

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