#BAC138#BAC138

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

Color values

HEX#BAC138
RGBrgb(186, 193, 56)
HSLhsl(63, 55%, 49%)
HSVhsv(63, 71%, 76%)
CMYKcmyk(3.6%, 0%, 71%, 24.3%)
CIE-LABlab(75.37, -19.02, 64.20)
CIE-LCHlch(75.37, 66.96, 106.50°)
OKLaboklab(78.11% -0.0587 0.1425)
OKLCHoklch(78.11% 0.154 112.4)
XYZxyz(40.0347, 48.8655, 11.0637)
Luminance0.4886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC138 #3F38C1
analogous
#C18438 #BAC138 #76C138
triadic
#BAC138 #38BAC1 #C138BA
tetradic
#BAC138 #38C184 #3F38C1 #C13876
square
#BAC138 #38C184 #3F38C1 #C13876
split-complementary
#BAC138 #3876C1 #8438C1
monochromatic
#5F621C #8C922A #BAC138 #CCD264 #DCE094

Accessibility & contrast

On white

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

On black

10.77
#BAC138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC138
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC138#FFFFFF#000000##000000
##BAC1381.001.9510.7710.77
#FFFFFF1.951.0021.0021.00
#00000010.7721.001.001.00
##00000010.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B81F
Deuteranopia (green-blind)
#D0BB43
Tritanopia (blue-blind)
#C7B5A6
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #bac138;
/* rgb */ color: rgb(186, 193, 56);
/* oklch */ color: oklch(78.1% 0.154 112.4);
Tailwind
colors: {
  custom: {
    50: '#d2d378',
    500: '#bac138',
    950: '#000000',
  },
}
SCSS
$custom: #bac138;
$custom-light: #d2d378;
$custom-dark: #000000;
JSON
{
  "hex": "#bac138",
  "rgb": {
    "r": 186,
    "g": 193,
    "b": 56
  },
  "hsl": {
    "h": 63.066,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.78112,
    "c": 0.15413,
    "h": 112.4
  },
  "luminance": 0.48865
}

Semantic roles & 50–950 ramp

primary
#BAC138
secondary
#8D8ACB
accent
#49DE51
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#151409
muted
#83827B

Preview Lab

Preview with #BAC138

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

Preview Lab → · Contrast checker → · Palette generator →

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