#BAC52B#BAC52B

#BAC52B is a light, vivid yellow. Relative luminance 0.505; OKLCH L 78.9% C 0.165 H 113.8°. Best body text is #000000 at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#BAC52B
RGBrgb(186, 197, 43)
HSLhsl(64, 64%, 47%)
HSVhsv(64, 78%, 77%)
CMYKcmyk(5.6%, 0%, 78.2%, 22.7%)
CIE-LABlab(76.40, -21.57, 69.38)
CIE-LCHlch(76.40, 72.66, 107.27°)
OKLaboklab(78.92% -0.0669 0.1512)
OKLCHoklch(78.92% 0.165 113.8)
XYZxyz(40.6533, 50.5469, 9.9000)
Luminance0.5055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC52B #362BC5
analogous
#C5832B #BAC52B #6DC52B
triadic
#BAC52B #2BBAC5 #C52BBA
tetradic
#BAC52B #2BC583 #362BC5 #C52B6D
square
#BAC52B #2BC583 #362BC5 #C52B6D
split-complementary
#BAC52B #2B6DC5 #832BC5
monochromatic
#5B6115 #8B9320 #BAC52B #D0DA54 #DEE586

Accessibility & contrast

On white

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

On black

11.11
#BAC52B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC52B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC52B#FFFFFF#000000##000000
##BAC52B1.001.8911.1111.11
#FFFFFF1.891.0021.0021.00
#00000011.1121.001.001.00
##00000011.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB00
Deuteranopia (green-blind)
#D4BE39
Tritanopia (blue-blind)
#C7B9A9
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #bac52b;
/* rgb */ color: rgb(186, 197, 43);
/* oklch */ color: oklch(78.9% 0.165 113.8);
Tailwind
colors: {
  custom: {
    50: '#d3d672',
    500: '#bac52b',
    950: '#000000',
  },
}
SCSS
$custom: #bac52b;
$custom-light: #d3d672;
$custom-dark: #000000;
JSON
{
  "hex": "#bac52b",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 43
  },
  "hsl": {
    "h": 64.286,
    "s": 64.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.7892,
    "c": 0.16534,
    "h": 113.8
  },
  "luminance": 0.50546
}

Semantic roles & 50–950 ramp

primary
#BAC52B
secondary
#2E296B
accent
#41E74D
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC52B

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

Preview Lab → · Contrast checker → · Palette generator →

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