#BAC42F#BAC42F

#BAC42F is a light, vivid yellow. Relative luminance 0.501; OKLCH L 78.7% C 0.162 H 113.5°. Best body text is #000000 at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#BAC42F
RGBrgb(186, 196, 47)
HSLhsl(64, 61%, 48%)
HSVhsv(64, 76%, 77%)
CMYKcmyk(5.1%, 0%, 76%, 23.1%)
CIE-LABlab(76.15, -20.92, 67.95)
CIE-LCHlch(76.15, 71.10, 107.11°)
OKLaboklab(78.72% -0.0647 0.1489)
OKLCHoklch(78.72% 0.162 113.5)
XYZxyz(40.5040, 50.1251, 10.2302)
Luminance0.5012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC42F #392FC4
analogous
#C4842F #BAC42F #6FC42F
triadic
#BAC42F #2FBAC4 #C42FBA
tetradic
#BAC42F #2FC484 #392FC4 #C42F6F
square
#BAC42F #2FC484 #392FC4 #C42F6F
split-complementary
#BAC42F #2F6FC4 #842FC4
monochromatic
#5C6117 #8B9323 #BAC42F #CFD759 #DDE38A

Accessibility & contrast

On white

1.90
#BAC42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.02
#BAC42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC42F
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC42F#FFFFFF#000000##000000
##BAC42F1.001.9011.0211.02
#FFFFFF1.901.0021.0021.00
#00000011.0221.001.001.00
##00000011.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA05
Deuteranopia (green-blind)
#D3BD3C
Tritanopia (blue-blind)
#C7B8A8
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #bac42f;
/* rgb */ color: rgb(186, 196, 47);
/* oklch */ color: oklch(78.7% 0.162 113.5);
Tailwind
colors: {
  custom: {
    50: '#d3d574',
    500: '#bac42f',
    950: '#000000',
  },
}
SCSS
$custom: #bac42f;
$custom-light: #d3d574;
$custom-dark: #000000;
JSON
{
  "hex": "#bac42f",
  "rgb": {
    "r": 186,
    "g": 196,
    "b": 47
  },
  "hsl": {
    "h": 64.027,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.7872,
    "c": 0.16234,
    "h": 113.5
  },
  "luminance": 0.50124
}

Semantic roles & 50–950 ramp

primary
#BAC42F
secondary
#302B6C
accent
#43E44E
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC42F

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

Preview Lab → · Contrast checker → · Palette generator →

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