#BAC528#BAC528

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

Color values

HEX#BAC528
RGBrgb(186, 197, 40)
HSLhsl(64, 66%, 46%)
HSVhsv(64, 80%, 77%)
CMYKcmyk(5.6%, 0%, 79.7%, 22.7%)
CIE-LABlab(76.39, -21.68, 70.21)
CIE-LCHlch(76.39, 73.48, 107.16°)
OKLaboklab(78.91% -0.0674 0.1525)
OKLCHoklch(78.91% 0.167 113.8)
XYZxyz(40.6003, 50.5257, 9.6208)
Luminance0.5052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC528 #3328C5
analogous
#C58228 #BAC528 #6CC528
triadic
#BAC528 #28BAC5 #C528BA
tetradic
#BAC528 #28C582 #3328C5 #C5286C
square
#BAC528 #28C582 #3328C5 #C5286C
split-complementary
#BAC528 #286CC5 #8228C5
monochromatic
#5A5F13 #8A921E #BAC528 #D1DB4F #DFE682

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAC528#FFFFFF#000000##000000
##BAC5281.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)
#D4BE37
Tritanopia (blue-blind)
#C7B9A9
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #bac528;
/* rgb */ color: rgb(186, 197, 40);
/* oklch */ color: oklch(78.9% 0.167 113.8);
Tailwind
colors: {
  custom: {
    50: '#d3d671',
    500: '#bac528',
    950: '#000000',
  },
}
SCSS
$custom: #bac528;
$custom-light: #d3d671;
$custom-dark: #000000;
JSON
{
  "hex": "#bac528",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 40
  },
  "hsl": {
    "h": 64.204,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.78906,
    "c": 0.1667,
    "h": 113.8
  },
  "luminance": 0.50525
}

Semantic roles & 50–950 ramp

primary
#BAC528
secondary
#2C276A
accent
#3FE94B
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC528

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

Preview Lab → · Contrast checker → · Palette generator →

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