#BAB142#BAB142

#BAB142 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.7% C 0.131 H 104.7°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#BAB142
RGBrgb(186, 177, 66)
HSLhsl(56, 48%, 49%)
HSVhsv(56, 65%, 73%)
CMYKcmyk(0%, 4.8%, 64.5%, 27.1%)
CIE-LABlab(71.06, -10.33, 55.93)
CIE-LCHlch(71.06, 56.88, 100.46°)
OKLaboklab(74.7% -0.0332 0.1267)
OKLCHoklch(74.7% 0.131 104.7)
XYZxyz(36.9566, 42.2781, 11.3670)
Luminance0.4228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB142 #424BBA
analogous
#BA7542 #BAB142 #87BA42
triadic
#BAB142 #42BAB1 #B142BA
tetradic
#BAB142 #42BA75 #424BBA #BA4287
square
#BAB142 #42BA75 #424BBA #BA4287
split-complementary
#BAB142 #4287BA #7542BA
monochromatic
#605B22 #8D8632 #BAB142 #CBC46E #DBD79B

Accessibility & contrast

On white

2.22
#BAB142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#BAB142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB142
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB142#FFFFFF#000000##000000
##BAB1421.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB34
Deuteranopia (green-blind)
#C3B049
Tritanopia (blue-blind)
#C7A59A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab142;
/* rgb */ color: rgb(186, 177, 66);
/* oklch */ color: oklch(74.7% 0.131 104.7);
Tailwind
colors: {
  custom: {
    50: '#d2c87c',
    500: '#bab142',
    950: '#000000',
  },
}
SCSS
$custom: #bab142;
$custom-light: #d2c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab142",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 55.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.74698,
    "c": 0.13099,
    "h": 104.7
  },
  "luminance": 0.42277
}

Semantic roles & 50–950 ramp

primary
#BAB142
secondary
#9094C8
accent
#5BD751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB142

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

Preview Lab → · Contrast checker → · Palette generator →

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