#BA26B4#BA26B4

#BA26B4 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.4% C 0.232 H 330.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA26B4
RGBrgb(186, 38, 180)
HSLhsl(302, 66%, 44%)
HSVhsv(302, 80%, 73%)
CMYKcmyk(0%, 79.6%, 3.2%, 27.1%)
CIE-LABlab(45.80, 70.92, -41.93)
CIE-LCHlch(45.80, 82.38, 329.41°)
OKLaboklab(56.37% 0.2008 -0.1159)
OKLCHoklch(56.37% 0.232 330)
XYZxyz(29.1809, 15.1230, 44.5533)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA26B4 #26BA2C
analogous
#7626BA #BA26B4 #BA266A
triadic
#BA26B4 #B4BA26 #26B4BA
tetradic
#BA26B4 #BA7626 #26BA2C #266ABA
square
#BA26B4 #BA7626 #26BA2C #266ABA
split-complementary
#BA26B4 #6ABA26 #26BA76
monochromatic
#541152 #871C83 #BA26B4 #D944D3 #E377DF

Accessibility & contrast

On white

5.22
#BA26B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA26B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA26B4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA26B4#FFFFFF#000000##FFFFFF
##BA26B41.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0660B8
Deuteranopia (green-blind)
#5673B1
Tritanopia (blue-blind)
#C13D6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba26b4;
/* rgb */ color: rgb(186, 38, 180);
/* oklch */ color: oklch(56.4% 0.232 330.0);
Tailwind
colors: {
  custom: {
    50: '#d373cb',
    500: '#ba26b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba26b4;
$custom-light: #d373cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba26b4",
  "rgb": {
    "r": 186,
    "g": 38,
    "b": 180
  },
  "hsl": {
    "h": 302.432,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56366,
    "c": 0.23186,
    "h": 330
  },
  "luminance": 0.15121
}

Semantic roles & 50–950 ramp

primary
#BA26B4
secondary
#71CB75
accent
#E9463F
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA26B4

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

Preview Lab → · Contrast checker → · Palette generator →

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