#BAB545#BAB545

#BAB545 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.6% C 0.133 H 106.7°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#BAB545
RGBrgb(186, 181, 69)
HSLhsl(57, 46%, 50%)
HSVhsv(57, 63%, 73%)
CMYKcmyk(0%, 2.7%, 62.9%, 27.1%)
CIE-LABlab(72.17, -12.20, 55.84)
CIE-LCHlch(72.17, 57.15, 102.33°)
OKLaboklab(75.59% -0.0382 0.127)
OKLCHoklch(75.59% 0.133 106.7)
XYZxyz(37.8490, 43.9177, 12.1123)
Luminance0.4392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB545 #454ABA
analogous
#BA7B45 #BAB545 #84BA45
triadic
#BAB545 #45BAB5 #B545BA
tetradic
#BAB545 #45BA7B #454ABA #BA4584
square
#BAB545 #45BA7B #454ABA #BA4584
split-complementary
#BAB545 #4584BA #7B45BA
monochromatic
#615E24 #8D8A34 #BAB545 #CBC772 #DBD99E

Accessibility & contrast

On white

2.15
#BAB545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#BAB545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB545
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB545#FFFFFF#000000##000000
##BAB5451.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE37
Deuteranopia (green-blind)
#C6B34C
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab545;
/* rgb */ color: rgb(186, 181, 69);
/* oklch */ color: oklch(75.6% 0.133 106.7);
Tailwind
colors: {
  custom: {
    50: '#d2ca7e',
    500: '#bab545',
    950: '#000000',
  },
}
SCSS
$custom: #bab545;
$custom-light: #d2ca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab545",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 57.436,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.75591,
    "c": 0.13258,
    "h": 106.7
  },
  "luminance": 0.43917
}

Semantic roles & 50–950 ramp

primary
#BAB545
secondary
#9395C8
accent
#58D652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB545

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

Preview Lab → · Contrast checker → · Palette generator →

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