#BA26A2#BA26A2

#BA26A2 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.219 H 335.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#BA26A2
RGBrgb(186, 38, 162)
HSLhsl(310, 66%, 44%)
HSVhsv(310, 80%, 73%)
CMYKcmyk(0%, 79.6%, 12.9%, 27.1%)
CIE-LABlab(44.85, 68.26, -32.76)
CIE-LCHlch(44.85, 75.72, 334.37°)
OKLaboklab(55.38% 0.2004 -0.0895)
OKLCHoklch(55.38% 0.219 335.9)
XYZxyz(27.4649, 14.4365, 35.5155)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA26A2 #26BA3E
analogous
#8826BA #BA26A2 #BA2658
triadic
#BA26A2 #A2BA26 #26A2BA
tetradic
#BA26A2 #BA8826 #26BA3E #2658BA
square
#BA26A2 #BA8826 #26BA3E #2658BA
split-complementary
#BA26A2 #58BA26 #26BA88
monochromatic
#541149 #871C76 #BA26A2 #D944C1 #E377D2

Accessibility & contrast

On white

5.40
#BA26A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BA26A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA26A2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA26A2#FFFFFF#000000##FFFFFF
##BA26A21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#C43363
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba26a2;
/* rgb */ color: rgb(186, 38, 162);
/* oklch */ color: oklch(55.4% 0.219 335.9);
Tailwind
colors: {
  custom: {
    50: '#d373be',
    500: '#ba26a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba26a2;
$custom-light: #d373be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba26a2",
  "rgb": {
    "r": 186,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 309.73,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55381,
    "c": 0.21944,
    "h": 335.9
  },
  "luminance": 0.14434
}

Semantic roles & 50–950 ramp

primary
#BA26A2
secondary
#71CB80
accent
#E95A3F
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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