#BAC127#BAC127

#BAC127 is a light, vivid yellow. Relative luminance 0.487; OKLCH L 78.0% C 0.163 H 112.4°. Best body text is #000000 at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#BAC127
RGBrgb(186, 193, 39)
HSLhsl(63, 66%, 45%)
HSVhsv(63, 80%, 76%)
CMYKcmyk(3.6%, 0%, 79.8%, 24.3%)
CIE-LABlab(75.28, -19.74, 69.51)
CIE-LCHlch(75.28, 72.26, 105.85°)
OKLaboklab(78.02% -0.0621 0.1508)
OKLCHoklch(78.02% 0.163 112.4)
XYZxyz(39.6872, 48.7265, 9.2336)
Luminance0.4873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC127 #2E27C1
analogous
#C17B27 #BAC127 #6DC127
triadic
#BAC127 #27BAC1 #C127BA
tetradic
#BAC127 #27C17B #2E27C1 #C1276D
square
#BAC127 #27C17B #2E27C1 #C1276D
split-complementary
#BAC127 #276DC1 #7B27C1
monochromatic
#585B12 #898E1D #BAC127 #D4DB4B #E0E57E

Accessibility & contrast

On white

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

On black

10.75
#BAC127 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC127
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC127#FFFFFF#000000##000000
##BAC1271.001.9510.7510.75
#FFFFFF1.951.0021.0021.00
#00000010.7521.001.001.00
##00000010.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B800
Deuteranopia (green-blind)
#D1BB36
Tritanopia (blue-blind)
#C7B5A5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #bac127;
/* rgb */ color: rgb(186, 193, 39);
/* oklch */ color: oklch(78.0% 0.163 112.4);
Tailwind
colors: {
  custom: {
    50: '#d3d370',
    500: '#bac127',
    950: '#000000',
  },
}
SCSS
$custom: #bac127;
$custom-light: #d3d370;
$custom-dark: #000000;
JSON
{
  "hex": "#bac127",
  "rgb": {
    "r": 186,
    "g": 193,
    "b": 39
  },
  "hsl": {
    "h": 62.727,
    "s": 66.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.78015,
    "c": 0.16308,
    "h": 112.4
  },
  "luminance": 0.48726
}

Semantic roles & 50–950 ramp

primary
#BAC127
secondary
#7B77CD
accent
#3EE946
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151408
muted
#83827B

Preview Lab

Preview with #BAC127

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

Preview Lab → · Contrast checker → · Palette generator →

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