#BAC628#BAC628

#BAC628 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.20:1 contrast (WCAG AA passes).

Color values

HEX#BAC628
RGBrgb(186, 198, 40)
HSLhsl(65, 66%, 47%)
HSVhsv(65, 80%, 78%)
CMYKcmyk(6.1%, 0%, 79.8%, 22.4%)
CIE-LABlab(76.67, -22.17, 70.46)
CIE-LCHlch(76.67, 73.86, 107.46°)
OKLaboklab(79.13% -0.0687 0.153)
OKLCHoklch(79.13% 0.168 114.2)
XYZxyz(40.8281, 50.9813, 9.6967)
Luminance0.5098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC628 #3428C6
analogous
#C68328 #BAC628 #6BC628
triadic
#BAC628 #28BAC6 #C628BA
tetradic
#BAC628 #28C683 #3428C6 #C6286B
square
#BAC628 #28C683 #3428C6 #C6286B
split-complementary
#BAC628 #286BC6 #8328C6
monochromatic
#5A6013 #8A931E #BAC628 #D1DC50 #DEE683

Accessibility & contrast

On white

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

On black

11.20
#BAC628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC628
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC628#FFFFFF#000000##000000
##BAC6281.001.8811.2011.20
#FFFFFF1.881.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bac628;
/* rgb */ color: rgb(186, 198, 40);
/* oklch */ color: oklch(79.1% 0.168 114.2);
Tailwind
colors: {
  custom: {
    50: '#d3d771',
    500: '#bac628',
    950: '#000000',
  },
}
SCSS
$custom: #bac628;
$custom-light: #d3d771;
$custom-dark: #000000;
JSON
{
  "hex": "#bac628",
  "rgb": {
    "r": 186,
    "g": 198,
    "b": 40
  },
  "hsl": {
    "h": 64.557,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.79128,
    "c": 0.16772,
    "h": 114.2
  },
  "luminance": 0.5098
}

Semantic roles & 50–950 ramp

primary
#BAC628
secondary
#2C276B
accent
#3EE94B
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #BAC628

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

Preview Lab → · Contrast checker → · Palette generator →

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