#BAC526#BAC526

#BAC526 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 78.9% C 0.168 H 113.8°. Best body text is #000000 at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#BAC526
RGBrgb(186, 197, 38)
HSLhsl(64, 68%, 46%)
HSVhsv(64, 81%, 77%)
CMYKcmyk(5.6%, 0%, 80.7%, 22.7%)
CIE-LABlab(76.38, -21.74, 70.74)
CIE-LCHlch(76.38, 74.01, 107.09°)
OKLaboklab(78.9% -0.0677 0.1533)
OKLCHoklch(78.9% 0.168 113.8)
XYZxyz(40.5671, 50.5124, 9.4462)
Luminance0.5051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAC526 #3126C5
analogous
#C58026 #BAC526 #6AC526
triadic
#BAC526 #26BAC5 #C526BA
tetradic
#BAC526 #26C580 #3126C5 #C5266A
square
#BAC526 #26C580 #3126C5 #C5266A
split-complementary
#BAC526 #266AC5 #8026C5
monochromatic
#595E12 #8A921C #BAC526 #D2DC4C #DFE67F

Accessibility & contrast

On white

1.89
#BAC526 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.10
#BAC526 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAC526
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAC526#FFFFFF#000000##000000
##BAC5261.001.8911.1011.10
#FFFFFF1.891.0021.0021.00
#00000011.1021.001.001.00
##00000011.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB00
Deuteranopia (green-blind)
#D4BE36
Tritanopia (blue-blind)
#C7B9A9
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #bac526;
/* rgb */ color: rgb(186, 197, 38);
/* oklch */ color: oklch(78.9% 0.168 113.8);
Tailwind
colors: {
  custom: {
    50: '#d3d670',
    500: '#bac526',
    950: '#000000',
  },
}
SCSS
$custom: #bac526;
$custom-light: #d3d670;
$custom-dark: #000000;
JSON
{
  "hex": "#bac526",
  "rgb": {
    "r": 186,
    "g": 197,
    "b": 38
  },
  "hsl": {
    "h": 64.151,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.78897,
    "c": 0.16756,
    "h": 113.8
  },
  "luminance": 0.50512
}

Semantic roles & 50–950 ramp

primary
#BAC526
secondary
#2A266A
accent
#3DEB49
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151408
muted
#84837D

Preview Lab

Preview with #BAC526

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

Preview Lab → · Contrast checker → · Palette generator →

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