#BAC842#BAC842

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

Color values

HEX#BAC842
RGBrgb(186, 200, 66)
HSLhsl(66, 55%, 52%)
HSVhsv(66, 67%, 78%)
CMYKcmyk(7%, 0%, 67%, 21.6%)
CIE-LABlab(77.37, -21.94, 62.47)
CIE-LCHlch(77.37, 66.21, 109.35°)
OKLaboklab(79.73% -0.0659 0.1405)
OKLCHoklch(79.73% 0.155 115.1)
XYZxyz(41.8884, 52.1417, 13.0109)
Luminance0.5214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC842 #5042C8
analogous
#C89342 #BAC842 #77C842
triadic
#BAC842 #42BAC8 #C842BA
tetradic
#BAC842 #42C893 #5042C8 #C84277
square
#BAC842 #42C893 #5042C8 #C84277
split-complementary
#BAC842 #4277C8 #9342C8
monochromatic
#676F20 #939F2E #BAC842 #CBD671 #DDE4A1

Accessibility & contrast

On white

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

On black

11.43
#BAC842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC842
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC842#FFFFFF#000000##000000
##BAC8421.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bac842;
/* rgb */ color: rgb(186, 200, 66);
/* oklch */ color: oklch(79.7% 0.155 115.1);
Tailwind
colors: {
  custom: {
    50: '#d2d87e',
    500: '#bac842',
    950: '#000000',
  },
}
SCSS
$custom: #bac842;
$custom-light: #d2d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#bac842",
  "rgb": {
    "r": 186,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 66.269,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79733,
    "c": 0.15516,
    "h": 115.1
  },
  "luminance": 0.52141
}

Semantic roles & 50–950 ramp

primary
#BAC842
secondary
#3D3679
accent
#4ADE59
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #BAC842

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

Preview Lab → · Contrast checker → · Palette generator →

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