#BAC540#BAC540

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

Color values

HEX#BAC540
RGBrgb(186, 197, 64)
HSLhsl(65, 53%, 51%)
HSVhsv(65, 68%, 77%)
CMYKcmyk(5.6%, 0%, 67.5%, 22.7%)
CIE-LABlab(76.52, -20.58, 62.38)
CIE-LCHlch(76.52, 65.69, 108.26°)
OKLaboklab(79.05% -0.0622 0.14)
OKLCHoklch(79.05% 0.153 114)
XYZxyz(41.1425, 50.7426, 12.4765)
Luminance0.5074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC540 #4B40C5
analogous
#C58D40 #BAC540 #77C540
triadic
#BAC540 #40BAC5 #C540BA
tetradic
#BAC540 #40C58D #4B40C5 #C54077
square
#BAC540 #40C58D #4B40C5 #C54077
split-complementary
#BAC540 #4077C5 #8D40C5
monochromatic
#646A20 #90992F #BAC540 #CBD36F #DCE29E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAC540#FFFFFF#000000##000000
##BAC5401.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)
#D3BC2C
Deuteranopia (green-blind)
#D3BE4A
Tritanopia (blue-blind)
#C6BAAA
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #bac540;
/* rgb */ color: rgb(186, 197, 64);
/* oklch */ color: oklch(79.1% 0.153 114.0);
Tailwind
colors: {
  custom: {
    50: '#d2d67c',
    500: '#bac540',
    950: '#000000',
  },
}
SCSS
$custom: #bac540;
$custom-light: #d2d67c;
$custom-dark: #000000;
JSON
{
  "hex": "#bac540",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 64.962,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79054,
    "c": 0.15322,
    "h": 114
  },
  "luminance": 0.50742
}

Semantic roles & 50–950 ramp

primary
#BAC540
secondary
#3A3574
accent
#4BDD57
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #BAC540

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

Preview Lab → · Contrast checker → · Palette generator →

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