#BA26BD#BA26BD

#BA26BD is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.9% C 0.238 H 327.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA26BD
RGBrgb(186, 38, 189)
HSLhsl(299, 67%, 45%)
HSVhsv(299, 80%, 74%)
CMYKcmyk(1.6%, 79.9%, 0%, 25.9%)
CIE-LABlab(46.31, 72.32, -46.39)
CIE-LCHlch(46.31, 85.92, 327.32°)
OKLaboklab(56.89% 0.2005 -0.1289)
OKLCHoklch(56.89% 0.238 327.3)
XYZxyz(30.1277, 15.5017, 49.5396)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA26BD #29BD26
analogous
#6F26BD #BA26BD #BD2675
triadic
#BA26BD #BDBA26 #26BDBA
tetradic
#BA26BD #BD6F26 #29BD26 #2675BD
square
#BA26BD #BD6F26 #29BD26 #2675BD
split-complementary
#BA26BD #75BD26 #26BD6F
monochromatic
#561257 #881C8A #BA26BD #D746DA #E279E4

Accessibility & contrast

On white

5.12
#BA26BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA26BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA26BD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA26BD#FFFFFF#000000##FFFFFF
##BA26BD1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#5074B9
Tritanopia (blue-blind)
#BF4273
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba26bd;
/* rgb */ color: rgb(186, 38, 189);
/* oklch */ color: oklch(56.9% 0.238 327.3);
Tailwind
colors: {
  custom: {
    50: '#d374d1',
    500: '#ba26bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba26bd;
$custom-light: #d374d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba26bd",
  "rgb": {
    "r": 186,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 298.808,
    "s": 66.52,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56894,
    "c": 0.23834,
    "h": 327.3
  },
  "luminance": 0.15499
}

Semantic roles & 50–950 ramp

primary
#BA26BD
secondary
#75CC73
accent
#E93E42
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA26BD

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

Preview Lab → · Contrast checker → · Palette generator →

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