#BAB345#BAB345

#BAB345 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.2% C 0.131 H 105.7°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#BAB345
RGBrgb(186, 179, 69)
HSLhsl(56, 46%, 50%)
HSVhsv(56, 63%, 73%)
CMYKcmyk(0%, 3.8%, 62.9%, 27.1%)
CIE-LABlab(71.63, -11.17, 55.26)
CIE-LCHlch(71.63, 56.37, 101.43°)
OKLaboklab(75.16% -0.0353 0.1257)
OKLCHoklch(75.16% 0.131 105.7)
XYZxyz(37.4453, 43.1102, 11.9777)
Luminance0.4311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB345 #454CBA
analogous
#BA7845 #BAB345 #87BA45
triadic
#BAB345 #45BAB3 #B345BA
tetradic
#BAB345 #45BA78 #454CBA #BA4587
square
#BAB345 #45BA78 #454CBA #BA4587
split-complementary
#BAB345 #4587BA #7845BA
monochromatic
#615D24 #8D8834 #BAB345 #CBC572 #DBD79E

Accessibility & contrast

On white

2.18
#BAB345 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#BAB345 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB345
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB345#FFFFFF#000000##000000
##BAB3451.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD38
Deuteranopia (green-blind)
#C4B24B
Tritanopia (blue-blind)
#C7A89C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab345;
/* rgb */ color: rgb(186, 179, 69);
/* oklch */ color: oklch(75.2% 0.131 105.7);
Tailwind
colors: {
  custom: {
    50: '#d2c97e',
    500: '#bab345',
    950: '#000000',
  },
}
SCSS
$custom: #bab345;
$custom-light: #d2c97e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab345",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 69
  },
  "hsl": {
    "h": 56.41,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.75158,
    "c": 0.13058,
    "h": 105.7
  },
  "luminance": 0.43109
}

Semantic roles & 50–950 ramp

primary
#BAB345
secondary
#9396C8
accent
#5AD652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB345

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

Preview Lab → · Contrast checker → · Palette generator →

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