#BAC631#BAC631

#BAC631 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.2% C 0.163 H 114.2°. Best body text is #000000 at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#BAC631
RGBrgb(186, 198, 49)
HSLhsl(65, 60%, 48%)
HSVhsv(65, 75%, 78%)
CMYKcmyk(6.1%, 0%, 75.3%, 22.4%)
CIE-LABlab(76.71, -21.82, 67.84)
CIE-LCHlch(76.71, 71.26, 107.83°)
OKLaboklab(79.17% -0.0671 0.149)
OKLCHoklch(79.17% 0.163 114.2)
XYZxyz(40.9994, 51.0498, 10.5990)
Luminance0.5105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC631 #3D31C6
analogous
#C68731 #BAC631 #6FC631
triadic
#BAC631 #31BAC6 #C631BA
tetradic
#BAC631 #31C687 #3D31C6 #C6316F
square
#BAC631 #31C687 #3D31C6 #C6316F
split-complementary
#BAC631 #316FC6 #8731C6
monochromatic
#5E6419 #8C9525 #BAC631 #CDD75D #DCE38E

Accessibility & contrast

On white

1.87
#BAC631 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.21
#BAC631 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC631
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC631#FFFFFF#000000##000000
##BAC6311.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC0B
Deuteranopia (green-blind)
#D4BF3E
Tritanopia (blue-blind)
#C6BAAA
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #bac631;
/* rgb */ color: rgb(186, 198, 49);
/* oklch */ color: oklch(79.2% 0.163 114.2);
Tailwind
colors: {
  custom: {
    50: '#d2d775',
    500: '#bac631',
    950: '#000000',
  },
}
SCSS
$custom: #bac631;
$custom-light: #d2d775;
$custom-dark: #000000;
JSON
{
  "hex": "#bac631",
  "rgb": {
    "r": 186,
    "g": 198,
    "b": 49
  },
  "hsl": {
    "h": 64.832,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.79174,
    "c": 0.16339,
    "h": 114.2
  },
  "luminance": 0.51049
}

Semantic roles & 50–950 ramp

primary
#BAC631
secondary
#322D6E
accent
#44E351
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC631

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

Preview Lab → · Contrast checker → · Palette generator →

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