#BAC831#BAC831

#BAC831 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 79.6% C 0.166 H 114.9°. Best body text is #000000 at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#BAC831
RGBrgb(186, 200, 49)
HSLhsl(66, 61%, 49%)
HSVhsv(66, 76%, 78%)
CMYKcmyk(7%, 0%, 75.5%, 21.6%)
CIE-LABlab(77.26, -22.80, 68.35)
CIE-LCHlch(77.26, 72.06, 108.44°)
OKLaboklab(79.62% -0.0698 0.1501)
OKLCHoklch(79.62% 0.166 114.9)
XYZxyz(41.4596, 51.9701, 10.7523)
Luminance0.5197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC831 #3F31C8
analogous
#C88B31 #BAC831 #6FC831
triadic
#BAC831 #31BAC8 #C831BA
tetradic
#BAC831 #31C88B #3F31C8 #C8316F
square
#BAC831 #31C88B #3F31C8 #C8316F
split-complementary
#BAC831 #316FC8 #8B31C8
monochromatic
#5F6619 #8C9725 #BAC831 #CCD85F #DCE490

Accessibility & contrast

On white

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

On black

11.39
#BAC831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC831
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC831#FFFFFF#000000##000000
##BAC8311.001.8411.3911.39
#FFFFFF1.841.0021.0021.00
#00000011.3921.001.001.00
##00000011.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BE09
Deuteranopia (green-blind)
#D6C03E
Tritanopia (blue-blind)
#C6BCAC
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #bac831;
/* rgb */ color: rgb(186, 200, 49);
/* oklch */ color: oklch(79.6% 0.166 114.9);
Tailwind
colors: {
  custom: {
    50: '#d2d875',
    500: '#bac831',
    950: '#000000',
  },
}
SCSS
$custom: #bac831;
$custom-light: #d2d875;
$custom-dark: #000000;
JSON
{
  "hex": "#bac831",
  "rgb": {
    "r": 186,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 65.563,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.79619,
    "c": 0.16551,
    "h": 114.9
  },
  "luminance": 0.51969
}

Semantic roles & 50–950 ramp

primary
#BAC831
secondary
#332D70
accent
#44E453
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC831

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

Preview Lab → · Contrast checker → · Palette generator →

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