#BAC52A#BAC52A

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

Color values

HEX#BAC52A
RGBrgb(186, 197, 42)
HSLhsl(64, 65%, 47%)
HSVhsv(64, 79%, 77%)
CMYKcmyk(5.6%, 0%, 78.7%, 22.7%)
CIE-LABlab(76.40, -21.61, 69.67)
CIE-LCHlch(76.40, 72.94, 107.23°)
OKLaboklab(78.92% -0.067 0.1517)
OKLCHoklch(78.92% 0.166 113.8)
XYZxyz(40.6352, 50.5396, 9.8046)
Luminance0.5054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC52A #352AC5
analogous
#C5832A #BAC52A #6DC52A
triadic
#BAC52A #2ABAC5 #C52ABA
tetradic
#BAC52A #2AC583 #352AC5 #C52A6D
square
#BAC52A #2AC583 #352AC5 #C52A6D
split-complementary
#BAC52A #2A6DC5 #832AC5
monochromatic
#5B6014 #8A931F #BAC52A #D0DA52 #DEE585

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAC52A#FFFFFF#000000##000000
##BAC52A1.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: #bac52a;
/* rgb */ color: rgb(186, 197, 42);
/* oklch */ color: oklch(78.9% 0.166 113.8);
Tailwind
colors: {
  custom: {
    50: '#d3d672',
    500: '#bac52a',
    950: '#000000',
  },
}
SCSS
$custom: #bac52a;
$custom-light: #d3d672;
$custom-dark: #000000;
JSON
{
  "hex": "#bac52a",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 42
  },
  "hsl": {
    "h": 64.258,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.78915,
    "c": 0.1658,
    "h": 113.8
  },
  "luminance": 0.50539
}

Semantic roles & 50–950 ramp

primary
#BAC52A
secondary
#2D286B
accent
#40E84C
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC52A

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

Preview Lab → · Contrast checker → · Palette generator →

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