#BAB845#BAB845

#BAB845 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.2% C 0.136 H 108.3°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#BAB845
RGBrgb(186, 184, 69)
HSLhsl(59, 46%, 50%)
HSVhsv(59, 63%, 73%)
CMYKcmyk(0%, 1.1%, 62.9%, 27.1%)
CIE-LABlab(72.99, -13.74, 56.70)
CIE-LCHlch(72.99, 58.35, 103.62°)
OKLaboklab(76.24% -0.0425 0.1288)
OKLCHoklch(76.24% 0.136 108.3)
XYZxyz(38.4656, 45.1509, 12.3178)
Luminance0.4515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB845 #4547BA
analogous
#BA7D45 #BAB845 #82BA45
triadic
#BAB845 #45BAB8 #B845BA
tetradic
#BAB845 #45BA7D #4547BA #BA4582
square
#BAB845 #45BA7D #4547BA #BA4582
split-complementary
#BAB845 #4582BA #7D45BA
monochromatic
#616024 #8D8C34 #BAB845 #CBC972 #DBDA9E

Accessibility & contrast

On white

2.09
#BAB845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#BAB845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB845
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB845#FFFFFF#000000##000000
##BAB8451.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B137
Deuteranopia (green-blind)
#C8B54C
Tritanopia (blue-blind)
#C7ADA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab845;
/* rgb */ color: rgb(186, 184, 69);
/* oklch */ color: oklch(76.2% 0.136 108.3);
Tailwind
colors: {
  custom: {
    50: '#d2cd7e',
    500: '#bab845',
    950: '#000000',
  },
}
SCSS
$custom: #bab845;
$custom-light: #d2cd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab845",
  "rgb": {
    "r": 186,
    "g": 184,
    "b": 69
  },
  "hsl": {
    "h": 58.974,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.76243,
    "c": 0.13564,
    "h": 108.3
  },
  "luminance": 0.4515
}

Semantic roles & 50–950 ramp

primary
#BAB845
secondary
#9394C8
accent
#54D652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB845

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

Preview Lab → · Contrast checker → · Palette generator →

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