#BAC12F#BAC12F

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

Color values

HEX#BAC12F
RGBrgb(186, 193, 47)
HSLhsl(63, 61%, 47%)
HSVhsv(63, 76%, 76%)
CMYKcmyk(3.6%, 0%, 75.6%, 24.3%)
CIE-LABlab(75.32, -19.43, 67.19)
CIE-LCHlch(75.32, 69.94, 106.13°)
OKLaboklab(78.06% -0.0606 0.1473)
OKLCHoklch(78.06% 0.159 112.4)
XYZxyz(39.8341, 48.7852, 10.0069)
Luminance0.4878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC12F #362FC1
analogous
#C17F2F #BAC12F #71C12F
triadic
#BAC12F #2FBAC1 #C12FBA
tetradic
#BAC12F #2FC17F #362FC1 #C12F71
square
#BAC12F #2FC17F #362FC1 #C12F71
split-complementary
#BAC12F #2F71C1 #7F2FC1
monochromatic
#5B5F17 #8B9023 #BAC12F #D0D657 #DEE288

Accessibility & contrast

On white

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

On black

10.76
#BAC12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC12F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC12F#FFFFFF#000000##000000
##BAC12F1.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bac12f;
/* rgb */ color: rgb(186, 193, 47);
/* oklch */ color: oklch(78.1% 0.159 112.4);
Tailwind
colors: {
  custom: {
    50: '#d2d373',
    500: '#bac12f',
    950: '#000000',
  },
}
SCSS
$custom: #bac12f;
$custom-light: #d2d373;
$custom-dark: #000000;
JSON
{
  "hex": "#bac12f",
  "rgb": {
    "r": 186,
    "g": 193,
    "b": 47
  },
  "hsl": {
    "h": 62.877,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.78056,
    "c": 0.15925,
    "h": 112.4
  },
  "luminance": 0.48784
}

Semantic roles & 50–950 ramp

primary
#BAC12F
secondary
#8480CC
accent
#44E44C
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC12F

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

Preview Lab → · Contrast checker → · Palette generator →

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