#BA20B9#BA20B9

#BA20B9 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.3% C 0.240 H 328.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA20B9
RGBrgb(186, 32, 185)
HSLhsl(300, 71%, 43%)
HSVhsv(300, 83%, 73%)
CMYKcmyk(0%, 82.8%, 0.5%, 27.1%)
CIE-LABlab(45.60, 73.09, -45.18)
CIE-LCHlch(45.60, 85.92, 328.28°)
OKLaboklab(56.32% 0.2046 -0.1254)
OKLCHoklch(56.32% 0.24 328.5)
XYZxyz(29.5229, 14.9772, 47.2255)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA20B9 #20BA21
analogous
#6E20BA #BA20B9 #BA206C
triadic
#BA20B9 #B9BA20 #20B9BA
tetradic
#BA20B9 #BA6E20 #20BA21 #206CBA
square
#BA20B9 #BA6E20 #20BA21 #206CBA
split-complementary
#BA20B9 #6CBA20 #20BA6E
monochromatic
#520E51 #861785 #BA20B9 #DD3ADC #E66EE5

Accessibility & contrast

On white

5.26
#BA20B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA20B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA20B9
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA20B9#FFFFFF#000000##FFFFFF
##BA20B91.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#5173B5
Tritanopia (blue-blind)
#C03D6F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba20b9;
/* rgb */ color: rgb(186, 32, 185);
/* oklch */ color: oklch(56.3% 0.240 328.5);
Tailwind
colors: {
  custom: {
    50: '#d372cf',
    500: '#ba20b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba20b9;
$custom-light: #d372cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba20b9",
  "rgb": {
    "r": 186,
    "g": 32,
    "b": 185
  },
  "hsl": {
    "h": 300.39,
    "s": 70.642,
    "l": 42.745
  },
  "oklch": {
    "l": 0.56316,
    "c": 0.23997,
    "h": 328.5
  },
  "luminance": 0.14975
}

Semantic roles & 50–950 ramp

primary
#BA20B9
secondary
#69CC6A
accent
#ED3C3A
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA20B9

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

Preview Lab → · Contrast checker → · Palette generator →

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