#BAC52F#BAC52F

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

Color values

HEX#BAC52F
RGBrgb(186, 197, 47)
HSLhsl(64, 61%, 48%)
HSVhsv(64, 76%, 77%)
CMYKcmyk(5.6%, 0%, 76.1%, 22.7%)
CIE-LABlab(76.42, -21.41, 68.20)
CIE-LCHlch(76.42, 71.49, 107.43°)
OKLaboklab(78.94% -0.0661 0.1494)
OKLCHoklch(78.94% 0.163 113.9)
XYZxyz(40.7303, 50.5777, 10.3056)
Luminance0.5058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC52F #3A2FC5
analogous
#C5852F #BAC52F #6FC52F
triadic
#BAC52F #2FBAC5 #C52FBA
tetradic
#BAC52F #2FC585 #3A2FC5 #C52F6F
square
#BAC52F #2FC585 #3A2FC5 #C52F6F
split-complementary
#BAC52F #2F6FC5 #852FC5
monochromatic
#5D6217 #8B9423 #BAC52F #CED85A #DDE38B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAC52F#FFFFFF#000000##000000
##BAC52F1.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)
#D4BB04
Deuteranopia (green-blind)
#D3BE3C
Tritanopia (blue-blind)
#C7B9A9
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #bac52f;
/* rgb */ color: rgb(186, 197, 47);
/* oklch */ color: oklch(78.9% 0.163 113.9);
Tailwind
colors: {
  custom: {
    50: '#d3d674',
    500: '#bac52f',
    950: '#000000',
  },
}
SCSS
$custom: #bac52f;
$custom-light: #d3d674;
$custom-dark: #000000;
JSON
{
  "hex": "#bac52f",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 47
  },
  "hsl": {
    "h": 64.4,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.78941,
    "c": 0.16338,
    "h": 113.9
  },
  "luminance": 0.50577
}

Semantic roles & 50–950 ramp

primary
#BAC52F
secondary
#302B6D
accent
#43E54F
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC52F

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

Preview Lab → · Contrast checker → · Palette generator →

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