#BAC031#BAC031

#BAC031 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.8% C 0.157 H 112.0°. Best body text is #000000 at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#BAC031
RGBrgb(186, 192, 49)
HSLhsl(63, 59%, 47%)
HSVhsv(63, 74%, 75%)
CMYKcmyk(3.1%, 0%, 74.5%, 24.7%)
CIE-LABlab(75.05, -18.85, 66.30)
CIE-LCHlch(75.05, 68.93, 105.87°)
OKLaboklab(77.85% -0.0588 0.1457)
OKLCHoklch(77.85% 0.157 112)
XYZxyz(39.6550, 48.3611, 10.1508)
Luminance0.4836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC031 #3731C0
analogous
#C07E31 #BAC031 #73C031
triadic
#BAC031 #31BAC0 #C031BA
tetradic
#BAC031 #31C07E #3731C0 #C03173
square
#BAC031 #31C07E #3731C0 #C03173
split-complementary
#BAC031 #3173C0 #7E31C0
monochromatic
#5C5E18 #8B8F25 #BAC031 #D0D559 #DEE18A

Accessibility & contrast

On white

1.97
#BAC031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.67
#BAC031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC031
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC031#FFFFFF#000000##000000
##BAC0311.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB710
Deuteranopia (green-blind)
#CFBA3D
Tritanopia (blue-blind)
#C7B4A5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #bac031;
/* rgb */ color: rgb(186, 192, 49);
/* oklch */ color: oklch(77.8% 0.157 112.0);
Tailwind
colors: {
  custom: {
    50: '#d2d274',
    500: '#bac031',
    950: '#000000',
  },
}
SCSS
$custom: #bac031;
$custom-light: #d2d274;
$custom-dark: #000000;
JSON
{
  "hex": "#bac031",
  "rgb": {
    "r": 186,
    "g": 192,
    "b": 49
  },
  "hsl": {
    "h": 62.517,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.77847,
    "c": 0.15716,
    "h": 112
  },
  "luminance": 0.4836
}

Semantic roles & 50–950 ramp

primary
#BAC031
secondary
#8582CB
accent
#45E34C
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC031

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

Preview Lab → · Contrast checker → · Palette generator →

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