#BA30B1#BA30B1

#BA30B1 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.220 H 330.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA30B1
RGBrgb(186, 48, 177)
HSLhsl(304, 59%, 46%)
HSVhsv(304, 74%, 73%)
CMYKcmyk(0%, 74.2%, 4.8%, 27.1%)
CIE-LABlab(46.62, 67.64, -38.87)
CIE-LCHlch(46.62, 78.01, 330.12°)
OKLaboklab(56.9% 0.1927 -0.1071)
OKLCHoklch(56.9% 0.22 330.9)
XYZxyz(29.2424, 15.7297, 43.0824)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B1 #30BA39
analogous
#7E30BA #BA30B1 #BA306C
triadic
#BA30B1 #B1BA30 #30B1BA
tetradic
#BA30B1 #BA7E30 #30BA39 #306CBA
square
#BA30B1 #BA7E30 #30BA39 #306CBA
split-complementary
#BA30B1 #6CBA30 #30BA7E
monochromatic
#591754 #892383 #BA30B1 #D354CB #DF85DA

Accessibility & contrast

On white

5.07
#BA30B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA30B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30B1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B1#FFFFFF#000000##FFFFFF
##BA30B11.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B4
Deuteranopia (green-blind)
#5B75AE
Tritanopia (blue-blind)
#C1426E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba30b1;
/* rgb */ color: rgb(186, 48, 177);
/* oklch */ color: oklch(56.9% 0.220 330.9);
Tailwind
colors: {
  custom: {
    50: '#d377c9',
    500: '#ba30b1',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b1;
$custom-light: #d377c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b1",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 303.913,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56896,
    "c": 0.22046,
    "h": 330.9
  },
  "luminance": 0.15727
}

Semantic roles & 50–950 ramp

primary
#BA30B1
secondary
#7DC982
accent
#E25046
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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