#BAC940#BAC940

#BAC940 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 79.9% C 0.158 H 115.4°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#BAC940
RGBrgb(186, 201, 64)
HSLhsl(67, 56%, 52%)
HSVhsv(67, 68%, 79%)
CMYKcmyk(7.5%, 0%, 68.2%, 21.2%)
CIE-LABlab(77.63, -22.54, 63.50)
CIE-LCHlch(77.63, 67.38, 109.55°)
OKLaboklab(79.94% -0.0677 0.1424)
OKLCHoklch(79.94% 0.158 115.4)
XYZxyz(42.0628, 52.5832, 12.7832)
Luminance0.5258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC940 #4F40C9
analogous
#C99340 #BAC940 #76C940
triadic
#BAC940 #40BAC9 #C940BA
tetradic
#BAC940 #40C993 #4F40C9 #C94076
square
#BAC940 #40C993 #4F40C9 #C94076
split-complementary
#BAC940 #4076C9 #9340C9
monochromatic
#666F1F #929F2D #BAC940 #CBD670 #DCE49F

Accessibility & contrast

On white

1.82
#BAC940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#BAC940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC940
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC940#FFFFFF#000000##000000
##BAC9401.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#D6C14A
Tritanopia (blue-blind)
#C6BEAE
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #bac940;
/* rgb */ color: rgb(186, 201, 64);
/* oklch */ color: oklch(79.9% 0.158 115.4);
Tailwind
colors: {
  custom: {
    50: '#d2d97d',
    500: '#bac940',
    950: '#000000',
  },
}
SCSS
$custom: #bac940;
$custom-light: #d2d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#bac940",
  "rgb": {
    "r": 186,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 66.569,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.7994,
    "c": 0.15764,
    "h": 115.4
  },
  "luminance": 0.52583
}

Semantic roles & 50–950 ramp

primary
#BAC940
secondary
#3C3578
accent
#49DF59
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #BAC940

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

Preview Lab → · Contrast checker → · Palette generator →

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