#BAC151#BAC151

#BAC151 is a light, vivid yellow. Relative luminance 0.492; OKLCH L 78.3% C 0.136 H 112.4°. Best body text is #000000 at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#BAC151
RGBrgb(186, 193, 81)
HSLhsl(64, 47%, 54%)
HSVhsv(64, 58%, 76%)
CMYKcmyk(3.6%, 0%, 58%, 24.3%)
CIE-LABlab(75.56, -17.46, 54.28)
CIE-LCHlch(75.56, 57.02, 107.83°)
OKLaboklab(78.33% -0.0517 0.1253)
OKLCHoklch(78.33% 0.136 112.4)
XYZxyz(40.8058, 49.1739, 15.1249)
Luminance0.4917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC151 #5851C1
analogous
#C19051 #BAC151 #82C151
triadic
#BAC151 #51BAC1 #C151BA
tetradic
#BAC151 #51C190 #5851C1 #C15182
square
#BAC151 #51C190 #5851C1 #C15182
split-complementary
#BAC151 #5182C1 #9051C1
monochromatic
#6B7028 #979D38 #BAC151 #CCD17E #DEE1AB

Accessibility & contrast

On white

1.94
#BAC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.83
#BAC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC151
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC151#FFFFFF#000000##000000
##BAC1511.001.9410.8310.83
#FFFFFF1.941.0021.0021.00
#00000010.8321.001.001.00
##00000010.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB945
Deuteranopia (green-blind)
#CEBC58
Tritanopia (blue-blind)
#C5B6A9
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #bac151;
/* rgb */ color: rgb(186, 193, 81);
/* oklch */ color: oklch(78.3% 0.136 112.4);
Tailwind
colors: {
  custom: {
    50: '#d1d386',
    500: '#bac151',
    950: '#000000',
  },
}
SCSS
$custom: #bac151;
$custom-light: #d1d386;
$custom-dark: #000000;
JSON
{
  "hex": "#bac151",
  "rgb": {
    "r": 186,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 63.75,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.78327,
    "c": 0.13555,
    "h": 112.4
  },
  "luminance": 0.49173
}

Semantic roles & 50–950 ramp

primary
#BAC151
secondary
#A29FCF
accent
#51D759
background
#FDFCF8
surface
#FAF9F0
border
#D3D2CB
text
#14140B
muted
#83827C

Preview Lab

Preview with #BAC151

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

Preview Lab → · Contrast checker → · Palette generator →

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