#BAC939#BAC939

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

Color values

HEX#BAC939
RGBrgb(186, 201, 57)
HSLhsl(66, 57%, 51%)
HSVhsv(66, 72%, 79%)
CMYKcmyk(7.5%, 0%, 71.6%, 21.2%)
CIE-LABlab(77.58, -22.92, 66.00)
CIE-LCHlch(77.58, 69.86, 109.15°)
OKLaboklab(79.89% -0.0694 0.1465)
OKLCHoklch(79.89% 0.162 115.4)
XYZxyz(41.8760, 52.5085, 11.7993)
Luminance0.5251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC939 #4839C9
analogous
#C99039 #BAC939 #72C939
triadic
#BAC939 #39BAC9 #C939BA
tetradic
#BAC939 #39C990 #4839C9 #C93972
square
#BAC939 #39C990 #4839C9 #C93972
split-complementary
#BAC939 #3972C9 #9039C9
monochromatic
#626B1D #8F9B2A #BAC939 #CBD669 #DCE399

Accessibility & contrast

On white

1.83
#BAC939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.50
#BAC939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC939
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC939#FFFFFF#000000##000000
##BAC9391.001.8311.5011.50
#FFFFFF1.831.0021.0021.00
#00000011.5021.001.001.00
##00000011.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF1E
Deuteranopia (green-blind)
#D6C145
Tritanopia (blue-blind)
#C6BDAD
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #bac939;
/* rgb */ color: rgb(186, 201, 57);
/* oklch */ color: oklch(79.9% 0.162 115.4);
Tailwind
colors: {
  custom: {
    50: '#d2d979',
    500: '#bac939',
    950: '#000000',
  },
}
SCSS
$custom: #bac939;
$custom-light: #d2d979;
$custom-dark: #000000;
JSON
{
  "hex": "#bac939",
  "rgb": {
    "r": 186,
    "g": 201,
    "b": 57
  },
  "hsl": {
    "h": 66.25,
    "s": 57.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.7989,
    "c": 0.16209,
    "h": 115.4
  },
  "luminance": 0.52508
}

Semantic roles & 50–950 ramp

primary
#BAC939
secondary
#393274
accent
#47E057
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #BAC939

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

Preview Lab → · Contrast checker → · Palette generator →

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