#BA26B6#BA26B6

#BA26B6 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.5% C 0.233 H 329.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA26B6
RGBrgb(186, 38, 182)
HSLhsl(302, 66%, 44%)
HSVhsv(302, 80%, 73%)
CMYKcmyk(0%, 79.6%, 2.2%, 27.1%)
CIE-LABlab(45.91, 71.22, -42.92)
CIE-LCHlch(45.91, 83.16, 328.92°)
OKLaboklab(56.48% 0.2008 -0.1188)
OKLCHoklch(56.48% 0.233 329.4)
XYZxyz(29.3861, 15.2050, 45.6340)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA26B6 #26BA2A
analogous
#7426BA #BA26B6 #BA266C
triadic
#BA26B6 #B6BA26 #26B6BA
tetradic
#BA26B6 #BA7426 #26BA2A #266CBA
square
#BA26B6 #BA7426 #26BA2A #266CBA
split-complementary
#BA26B6 #6CBA26 #26BA74
monochromatic
#541153 #871C84 #BA26B6 #D944D5 #E377E0

Accessibility & contrast

On white

5.20
#BA26B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA26B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA26B6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA26B6#FFFFFF#000000##FFFFFF
##BA26B61.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#5573B3
Tritanopia (blue-blind)
#C13E6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba26b6;
/* rgb */ color: rgb(186, 38, 182);
/* oklch */ color: oklch(56.5% 0.233 329.4);
Tailwind
colors: {
  custom: {
    50: '#d373cc',
    500: '#ba26b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba26b6;
$custom-light: #d373cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba26b6",
  "rgb": {
    "r": 186,
    "g": 38,
    "b": 182
  },
  "hsl": {
    "h": 301.622,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56482,
    "c": 0.23329,
    "h": 329.4
  },
  "luminance": 0.15203
}

Semantic roles & 50–950 ramp

primary
#BA26B6
secondary
#71CB73
accent
#E9433F
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA26B6

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

Preview Lab → · Contrast checker → · Palette generator →

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