#BAB145#BAB145

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

Color values

HEX#BAB145
RGBrgb(186, 177, 69)
HSLhsl(55, 46%, 50%)
HSVhsv(55, 63%, 73%)
CMYKcmyk(0%, 4.8%, 62.9%, 27.1%)
CIE-LABlab(71.09, -10.14, 54.68)
CIE-LCHlch(71.09, 55.61, 100.50°)
OKLaboklab(74.73% -0.0323 0.1245)
OKLCHoklch(74.73% 0.129 104.6)
XYZxyz(37.0474, 42.3144, 11.8451)
Luminance0.4231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB145 #454EBA
analogous
#BA7745 #BAB145 #88BA45
triadic
#BAB145 #45BAB1 #B145BA
tetradic
#BAB145 #45BA77 #454EBA #BA4588
square
#BAB145 #45BA77 #454EBA #BA4588
split-complementary
#BAB145 #4588BA #7745BA
monochromatic
#615C24 #8D8734 #BAB145 #CBC472 #DBD69E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB145#FFFFFF#000000##000000
##BAB1451.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)
#C0AB38
Deuteranopia (green-blind)
#C3B04B
Tritanopia (blue-blind)
#C7A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab145;
/* rgb */ color: rgb(186, 177, 69);
/* oklch */ color: oklch(74.7% 0.129 104.6);
Tailwind
colors: {
  custom: {
    50: '#d2c87e',
    500: '#bab145',
    950: '#000000',
  },
}
SCSS
$custom: #bab145;
$custom-light: #d2c87e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab145",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 69
  },
  "hsl": {
    "h": 55.385,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.74726,
    "c": 0.12864,
    "h": 104.6
  },
  "luminance": 0.42313
}

Semantic roles & 50–950 ramp

primary
#BAB145
secondary
#9397C8
accent
#5CD652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB145

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

Preview Lab → · Contrast checker → · Palette generator →

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