#BA2DE2#BA2DE2

#BA2DE2 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.7% C 0.261 H 317.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA2DE2
RGBrgb(186, 45, 226)
HSLhsl(287, 76%, 53%)
HSVhsv(287, 80%, 89%)
CMYKcmyk(17.7%, 80.1%, 0%, 11.4%)
CIE-LABlab(49.26, 76.78, -62.95)
CIE-LCHlch(49.26, 99.29, 320.65°)
OKLaboklab(59.71% 0.1912 -0.1774)
OKLCHoklch(59.71% 0.261 317.1)
XYZxyz(34.9135, 17.8084, 73.5351)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DE2 #55E22D
analogous
#5F2DE2 #BA2DE2 #E22DB0
triadic
#BA2DE2 #E2BA2D #2DE2BA
tetradic
#BA2DE2 #E25F2D #55E22D #2DB0E2
square
#BA2DE2 #E25F2D #55E22D #2DB0E2
split-complementary
#BA2DE2 #B0E22D #2DE25F
monochromatic
#6A1283 #9519B8 #BA2DE2 #CC63E9 #DD99F1

Accessibility & contrast

On white

4.60
#BA2DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BA2DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DE2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DE2#FFFFFF#000000##FFFFFF
##BA2DE21.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#3079DE
Tritanopia (blue-blind)
#B85889
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba2de2;
/* rgb */ color: rgb(186, 45, 226);
/* oklch */ color: oklch(59.7% 0.261 317.1);
Tailwind
colors: {
  custom: {
    50: '#d478ec',
    500: '#ba2de2',
    950: '#000000',
  },
}
SCSS
$custom: #ba2de2;
$custom-light: #d478ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2de2",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 226
  },
  "hsl": {
    "h": 286.74,
    "s": 75.732,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59714,
    "c": 0.26089,
    "h": 317.1
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#BA2DE2
secondary
#A0DC8E
accent
#F2355F
background
#FDF7FE
surface
#FBEEFD
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA2DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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