#BAC627#BAC627

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

Color values

HEX#BAC627
RGBrgb(186, 198, 39)
HSLhsl(65, 67%, 46%)
HSVhsv(65, 80%, 78%)
CMYKcmyk(6.1%, 0%, 80.3%, 22.4%)
CIE-LABlab(76.66, -22.20, 70.72)
CIE-LCHlch(76.66, 74.13, 107.43°)
OKLaboklab(79.12% -0.0689 0.1534)
OKLCHoklch(79.12% 0.168 114.2)
XYZxyz(40.8113, 50.9746, 9.6083)
Luminance0.5097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC627 #3327C6
analogous
#C68327 #BAC627 #6BC627
triadic
#BAC627 #27BAC6 #C627BA
tetradic
#BAC627 #27C683 #3327C6 #C6276B
square
#BAC627 #27C683 #3327C6 #C6276B
split-complementary
#BAC627 #276BC6 #8327C6
monochromatic
#5A6013 #8A931D #BAC627 #D1DC4E #DFE681

Accessibility & contrast

On white

1.88
#BAC627 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.19
#BAC627 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC627
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC627#FFFFFF#000000##000000
##BAC6271.001.8811.1911.19
#FFFFFF1.881.0021.0021.00
#00000011.1921.001.001.00
##00000011.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#D4BF37
Tritanopia (blue-blind)
#C7BAA9
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #bac627;
/* rgb */ color: rgb(186, 198, 39);
/* oklch */ color: oklch(79.1% 0.168 114.2);
Tailwind
colors: {
  custom: {
    50: '#d3d771',
    500: '#bac627',
    950: '#000000',
  },
}
SCSS
$custom: #bac627;
$custom-light: #d3d771;
$custom-dark: #000000;
JSON
{
  "hex": "#bac627",
  "rgb": {
    "r": 186,
    "g": 198,
    "b": 39
  },
  "hsl": {
    "h": 64.528,
    "s": 67.089,
    "l": 46.471
  },
  "oklch": {
    "l": 0.79123,
    "c": 0.16816,
    "h": 114.2
  },
  "luminance": 0.50974
}

Semantic roles & 50–950 ramp

primary
#BAC627
secondary
#2C276B
accent
#3EEA4B
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC627

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

Preview Lab → · Contrast checker → · Palette generator →

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