#BAC542#BAC542

#BAC542 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 79.1% C 0.152 H 114.0°. Best body text is #000000 at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#BAC542
RGBrgb(186, 197, 66)
HSLhsl(65, 53%, 52%)
HSVhsv(65, 66%, 77%)
CMYKcmyk(5.6%, 0%, 66.5%, 22.7%)
CIE-LABlab(76.54, -20.46, 61.62)
CIE-LCHlch(76.54, 64.93, 108.37°)
OKLaboklab(79.07% -0.0617 0.1387)
OKLCHoklch(79.07% 0.152 114)
XYZxyz(41.2004, 50.7657, 12.7816)
Luminance0.5077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC542 #4D42C5
analogous
#C58F42 #BAC542 #79C542
triadic
#BAC542 #42BAC5 #C542BA
tetradic
#BAC542 #42C58F #4D42C5 #C54279
square
#BAC542 #42C58F #4D42C5 #C54279
split-complementary
#BAC542 #4279C5 #8F42C5
monochromatic
#656C21 #919A2F #BAC542 #CBD371 #DCE2A0

Accessibility & contrast

On white

1.88
#BAC542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.15
#BAC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC542
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC542#FFFFFF#000000##000000
##BAC5421.001.8811.1511.15
#FFFFFF1.881.0021.0021.00
#00000011.1521.001.001.00
##00000011.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2F
Deuteranopia (green-blind)
#D3BE4B
Tritanopia (blue-blind)
#C6BAAB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #bac542;
/* rgb */ color: rgb(186, 197, 66);
/* oklch */ color: oklch(79.1% 0.152 114.0);
Tailwind
colors: {
  custom: {
    50: '#d2d67d',
    500: '#bac542',
    950: '#000000',
  },
}
SCSS
$custom: #bac542;
$custom-light: #d2d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#bac542",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 65.038,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.79069,
    "c": 0.15183,
    "h": 114
  },
  "luminance": 0.50765
}

Semantic roles & 50–950 ramp

primary
#BAC542
secondary
#3B3675
accent
#4BDC58
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #BAC542

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

Preview Lab → · Contrast checker → · Palette generator →

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