#BAC42B#BAC42B

#BAC42B is a light, vivid yellow. Relative luminance 0.501; OKLCH L 78.7% C 0.164 H 113.5°. Best body text is #000000 at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#BAC42B
RGBrgb(186, 196, 43)
HSLhsl(64, 64%, 47%)
HSVhsv(64, 78%, 77%)
CMYKcmyk(5.1%, 0%, 78.1%, 23.1%)
CIE-LABlab(76.13, -21.08, 69.14)
CIE-LCHlch(76.13, 72.28, 106.95°)
OKLaboklab(78.7% -0.0655 0.1507)
OKLCHoklch(78.7% 0.164 113.5)
XYZxyz(40.4270, 50.0943, 9.8246)
Luminance0.5009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC42B #352BC4
analogous
#C4822B #BAC42B #6DC42B
triadic
#BAC42B #2BBAC4 #C42BBA
tetradic
#BAC42B #2BC482 #352BC4 #C42B6D
square
#BAC42B #2BC482 #352BC4 #C42B6D
split-complementary
#BAC42B #2B6DC4 #822BC4
monochromatic
#5B6015 #8A9220 #BAC42B #D0D953 #DEE485

Accessibility & contrast

On white

1.91
#BAC42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.02
#BAC42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC42B
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC42B#FFFFFF#000000##000000
##BAC42B1.001.9111.0211.02
#FFFFFF1.911.0021.0021.00
#00000011.0221.001.001.00
##00000011.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA00
Deuteranopia (green-blind)
#D3BD39
Tritanopia (blue-blind)
#C7B8A8
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #bac42b;
/* rgb */ color: rgb(186, 196, 43);
/* oklch */ color: oklch(78.7% 0.164 113.5);
Tailwind
colors: {
  custom: {
    50: '#d3d572',
    500: '#bac42b',
    950: '#000000',
  },
}
SCSS
$custom: #bac42b;
$custom-light: #d3d572;
$custom-dark: #000000;
JSON
{
  "hex": "#bac42b",
  "rgb": {
    "r": 186,
    "g": 196,
    "b": 43
  },
  "hsl": {
    "h": 63.922,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.78698,
    "c": 0.16431,
    "h": 113.5
  },
  "luminance": 0.50093
}

Semantic roles & 50–950 ramp

primary
#BAC42B
secondary
#2D296B
accent
#41E74C
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC42B

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

Preview Lab → · Contrast checker → · Palette generator →

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