#BAC840#BAC840

#BAC840 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 79.7% C 0.157 H 115.1°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#BAC840
RGBrgb(186, 200, 64)
HSLhsl(66, 55%, 52%)
HSVhsv(66, 68%, 78%)
CMYKcmyk(7%, 0%, 68%, 21.6%)
CIE-LABlab(77.35, -22.05, 63.22)
CIE-LCHlch(77.35, 66.95, 109.23°)
OKLaboklab(79.72% -0.0664 0.1418)
OKLCHoklch(79.72% 0.157 115.1)
XYZxyz(41.8305, 52.1185, 12.7058)
Luminance0.5212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC840 #4E40C8
analogous
#C89240 #BAC840 #76C840
triadic
#BAC840 #40BAC8 #C840BA
tetradic
#BAC840 #40C892 #4E40C8 #C84076
square
#BAC840 #40C892 #4E40C8 #C84076
split-complementary
#BAC840 #4076C8 #9240C8
monochromatic
#666E20 #929D2D #BAC840 #CBD670 #DCE39F

Accessibility & contrast

On white

1.84
#BAC840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#BAC840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC840
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC840#FFFFFF#000000##000000
##BAC8401.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2B
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#C6BDAD
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #bac840;
/* rgb */ color: rgb(186, 200, 64);
/* oklch */ color: oklch(79.7% 0.157 115.1);
Tailwind
colors: {
  custom: {
    50: '#d2d87d',
    500: '#bac840',
    950: '#000000',
  },
}
SCSS
$custom: #bac840;
$custom-light: #d2d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#bac840",
  "rgb": {
    "r": 186,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 66.176,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79718,
    "c": 0.15653,
    "h": 115.1
  },
  "luminance": 0.52118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BAC840

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

Preview Lab → · Contrast checker → · Palette generator →

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