#BA20B8#BA20B8

#BA20B8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.3% C 0.239 H 328.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA20B8
RGBrgb(186, 32, 184)
HSLhsl(301, 71%, 43%)
HSVhsv(301, 83%, 73%)
CMYKcmyk(0%, 82.8%, 1.1%, 27.1%)
CIE-LABlab(45.55, 72.93, -44.69)
CIE-LCHlch(45.55, 85.53, 328.51°)
OKLaboklab(56.26% 0.2047 -0.1239)
OKLCHoklch(56.26% 0.239 328.8)
XYZxyz(29.4177, 14.9351, 46.6715)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA20B8 #20BA22
analogous
#6F20BA #BA20B8 #BA206B
triadic
#BA20B8 #B8BA20 #20B8BA
tetradic
#BA20B8 #BA6F20 #20BA22 #206BBA
square
#BA20B8 #BA6F20 #20BA22 #206BBA
split-complementary
#BA20B8 #6BBA20 #20BA6F
monochromatic
#520E51 #861784 #BA20B8 #DD3ADB #E66EE5

Accessibility & contrast

On white

5.27
#BA20B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA20B8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA20B8#FFFFFF#000000##FFFFFF
##BA20B81.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#5273B4
Tritanopia (blue-blind)
#C03C6F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba20b8;
/* rgb */ color: rgb(186, 32, 184);
/* oklch */ color: oklch(56.3% 0.239 328.8);
Tailwind
colors: {
  custom: {
    50: '#d372ce',
    500: '#ba20b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba20b8;
$custom-light: #d372ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba20b8",
  "rgb": {
    "r": 186,
    "g": 32,
    "b": 184
  },
  "hsl": {
    "h": 300.779,
    "s": 70.642,
    "l": 42.745
  },
  "oklch": {
    "l": 0.56257,
    "c": 0.23927,
    "h": 328.8
  },
  "luminance": 0.14933
}

Semantic roles & 50–950 ramp

primary
#BA20B8
secondary
#69CC6B
accent
#ED3D3A
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA20B8

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

Preview Lab → · Contrast checker → · Palette generator →

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