#BAC938#BAC938

#BAC938 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 79.9% C 0.163 H 115.3°. Best body text is #000000 at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#BAC938
RGBrgb(186, 201, 56)
HSLhsl(66, 57%, 50%)
HSVhsv(66, 72%, 79%)
CMYKcmyk(7.5%, 0%, 72.1%, 21.2%)
CIE-LABlab(77.58, -22.97, 66.34)
CIE-LCHlch(77.58, 70.20, 109.09°)
OKLaboklab(79.88% -0.0696 0.147)
OKLCHoklch(79.88% 0.163 115.3)
XYZxyz(41.8513, 52.4986, 11.6692)
Luminance0.5250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC938 #4738C9
analogous
#C98F38 #BAC938 #71C938
triadic
#BAC938 #38BAC9 #C938BA
tetradic
#BAC938 #38C98F #4738C9 #C93871
square
#BAC938 #38C98F #4738C9 #C93871
split-complementary
#BAC938 #3871C9 #8F38C9
monochromatic
#626A1D #8E9A2A #BAC938 #CBD668 #DBE398

Accessibility & contrast

On white

1.83
#BAC938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.50
#BAC938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC938
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC938#FFFFFF#000000##000000
##BAC9381.001.8311.5011.50
#FFFFFF1.831.0021.0021.00
#00000011.5021.001.001.00
##00000011.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF1C
Deuteranopia (green-blind)
#D6C144
Tritanopia (blue-blind)
#C6BDAD
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #bac938;
/* rgb */ color: rgb(186, 201, 56);
/* oklch */ color: oklch(79.9% 0.163 115.3);
Tailwind
colors: {
  custom: {
    50: '#d2d979',
    500: '#bac938',
    950: '#000000',
  },
}
SCSS
$custom: #bac938;
$custom-light: #d2d979;
$custom-dark: #000000;
JSON
{
  "hex": "#bac938",
  "rgb": {
    "r": 186,
    "g": 201,
    "b": 56
  },
  "hsl": {
    "h": 66.207,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.79883,
    "c": 0.16269,
    "h": 115.3
  },
  "luminance": 0.52498
}

Semantic roles & 50–950 ramp

primary
#BAC938
secondary
#383174
accent
#47E157
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #BAC938

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

Preview Lab → · Contrast checker → · Palette generator →

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