#BAC538#BAC538

#BAC538 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 79.0% C 0.158 H 113.9°. Best body text is #000000 at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#BAC538
RGBrgb(186, 197, 56)
HSLhsl(65, 56%, 50%)
HSVhsv(65, 72%, 77%)
CMYKcmyk(5.6%, 0%, 71.6%, 22.7%)
CIE-LABlab(76.47, -21.00, 65.27)
CIE-LCHlch(76.47, 68.57, 107.84°)
OKLaboklab(79% -0.0642 0.1448)
OKLCHoklch(79% 0.158 113.9)
XYZxyz(40.9309, 50.6579, 11.3624)
Luminance0.5066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC538 #4338C5
analogous
#C58A38 #BAC538 #74C538
triadic
#BAC538 #38BAC5 #C538BA
tetradic
#BAC538 #38C58A #4338C5 #C53874
square
#BAC538 #38C58A #4338C5 #C53874
split-complementary
#BAC538 #3874C5 #8A38C5
monochromatic
#60661D #8D952A #BAC538 #CBD467 #DBE196

Accessibility & contrast

On white

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

On black

11.13
#BAC538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC538
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC538#FFFFFF#000000##000000
##BAC5381.001.8911.1311.13
#FFFFFF1.891.0021.0021.00
#00000011.1321.001.001.00
##00000011.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB1E
Deuteranopia (green-blind)
#D3BE43
Tritanopia (blue-blind)
#C6B9AA
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #bac538;
/* rgb */ color: rgb(186, 197, 56);
/* oklch */ color: oklch(79.0% 0.158 113.9);
Tailwind
colors: {
  custom: {
    50: '#d2d678',
    500: '#bac538',
    950: '#000000',
  },
}
SCSS
$custom: #bac538;
$custom-light: #d2d678;
$custom-dark: #000000;
JSON
{
  "hex": "#bac538",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 56
  },
  "hsl": {
    "h": 64.681,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.78996,
    "c": 0.15837,
    "h": 113.9
  },
  "luminance": 0.50657
}

Semantic roles & 50–950 ramp

primary
#BAC538
secondary
#363170
accent
#49DF54
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#15140A
muted
#84837D

Preview Lab

Preview with #BAC538

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

Preview Lab → · Contrast checker → · Palette generator →

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