#BAC531#BAC531

#BAC531 is a light, vivid yellow. Relative luminance 0.506; OKLCH L 79.0% C 0.162 H 113.9°. Best body text is #000000 at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#BAC531
RGBrgb(186, 197, 49)
HSLhsl(64, 60%, 48%)
HSVhsv(64, 75%, 77%)
CMYKcmyk(5.6%, 0%, 75.1%, 22.7%)
CIE-LABlab(76.43, -21.33, 67.58)
CIE-LCHlch(76.43, 70.87, 107.51°)
OKLaboklab(78.95% -0.0657 0.1485)
OKLCHoklch(78.95% 0.162 113.9)
XYZxyz(40.7716, 50.5942, 10.5230)
Luminance0.5059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC531 #3C31C5
analogous
#C58631 #BAC531 #70C531
triadic
#BAC531 #31BAC5 #C531BA
tetradic
#BAC531 #31C586 #3C31C5 #C53170
square
#BAC531 #31C586 #3C31C5 #C53170
split-complementary
#BAC531 #3170C5 #8631C5
monochromatic
#5D6319 #8C9425 #BAC531 #CED75D #DCE38E

Accessibility & contrast

On white

1.89
#BAC531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.12
#BAC531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC531
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC531#FFFFFF#000000##000000
##BAC5311.001.8911.1211.12
#FFFFFF1.891.0021.0021.00
#00000011.1221.001.001.00
##00000011.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB0C
Deuteranopia (green-blind)
#D3BE3E
Tritanopia (blue-blind)
#C7B9A9
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #bac531;
/* rgb */ color: rgb(186, 197, 49);
/* oklch */ color: oklch(79.0% 0.162 113.9);
Tailwind
colors: {
  custom: {
    50: '#d2d675',
    500: '#bac531',
    950: '#000000',
  },
}
SCSS
$custom: #bac531;
$custom-light: #d2d675;
$custom-dark: #000000;
JSON
{
  "hex": "#bac531",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 49
  },
  "hsl": {
    "h": 64.459,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.78953,
    "c": 0.16234,
    "h": 113.9
  },
  "luminance": 0.50593
}

Semantic roles & 50–950 ramp

primary
#BAC531
secondary
#312D6E
accent
#44E350
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC531

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

Preview Lab → · Contrast checker → · Palette generator →

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