#BAC12D#BAC12D

#BAC12D is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.0% C 0.160 H 112.4°. Best body text is #000000 at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#BAC12D
RGBrgb(186, 193, 45)
HSLhsl(63, 62%, 47%)
HSVhsv(63, 77%, 76%)
CMYKcmyk(3.6%, 0%, 76.7%, 24.3%)
CIE-LABlab(75.31, -19.52, 67.80)
CIE-LCHlch(75.31, 70.55, 106.06°)
OKLaboklab(78.05% -0.061 0.1482)
OKLCHoklch(78.05% 0.16 112.4)
XYZxyz(39.7946, 48.7695, 9.7993)
Luminance0.4877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC12D #342DC1
analogous
#C17E2D #BAC12D #70C12D
triadic
#BAC12D #2DBAC1 #C12DBA
tetradic
#BAC12D #2DC17E #342DC1 #C12D70
square
#BAC12D #2DC17E #342DC1 #C12D70
split-complementary
#BAC12D #2D70C1 #7E2DC1
monochromatic
#5A5E16 #8A8F21 #BAC12D #D1D754 #DEE386

Accessibility & contrast

On white

1.95
#BAC12D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.75
#BAC12D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC12D
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC12D#FFFFFF#000000##000000
##BAC12D1.001.9510.7510.75
#FFFFFF1.951.0021.0021.00
#00000010.7521.001.001.00
##00000010.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B800
Deuteranopia (green-blind)
#D0BB3A
Tritanopia (blue-blind)
#C7B5A6
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #bac12d;
/* rgb */ color: rgb(186, 193, 45);
/* oklch */ color: oklch(78.0% 0.160 112.4);
Tailwind
colors: {
  custom: {
    50: '#d3d373',
    500: '#bac12d',
    950: '#000000',
  },
}
SCSS
$custom: #bac12d;
$custom-light: #d3d373;
$custom-dark: #000000;
JSON
{
  "hex": "#bac12d",
  "rgb": {
    "r": 186,
    "g": 193,
    "b": 45
  },
  "hsl": {
    "h": 62.838,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.78045,
    "c": 0.16027,
    "h": 112.4
  },
  "luminance": 0.48768
}

Semantic roles & 50–950 ramp

primary
#BAC12D
secondary
#817ECC
accent
#43E54A
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC12D

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

Preview Lab → · Contrast checker → · Palette generator →

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