#BA30B2#BA30B2

#BA30B2 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.221 H 330.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA30B2
RGBrgb(186, 48, 178)
HSLhsl(303, 59%, 46%)
HSVhsv(303, 74%, 73%)
CMYKcmyk(0%, 74.2%, 4.3%, 27.1%)
CIE-LABlab(46.67, 67.79, -39.37)
CIE-LCHlch(46.67, 78.40, 329.85°)
OKLaboklab(56.95% 0.1927 -0.1086)
OKLCHoklch(56.95% 0.221 330.6)
XYZxyz(29.3425, 15.7697, 43.6093)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B2 #30BA38
analogous
#7D30BA #BA30B2 #BA306D
triadic
#BA30B2 #B2BA30 #30B2BA
tetradic
#BA30B2 #BA7D30 #30BA38 #306DBA
square
#BA30B2 #BA7D30 #30BA38 #306DBA
split-complementary
#BA30B2 #6DBA30 #30BA7D
monochromatic
#591755 #892383 #BA30B2 #D354CC #DF85DA

Accessibility & contrast

On white

5.06
#BA30B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA30B2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B2#FFFFFF#000000##FFFFFF
##BA30B21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2063B6
Deuteranopia (green-blind)
#5B75AF
Tritanopia (blue-blind)
#C1426F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba30b2;
/* rgb */ color: rgb(186, 48, 178);
/* oklch */ color: oklch(57.0% 0.221 330.6);
Tailwind
colors: {
  custom: {
    50: '#d377c9',
    500: '#ba30b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b2;
$custom-light: #d377c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b2",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 303.478,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56952,
    "c": 0.2212,
    "h": 330.6
  },
  "luminance": 0.15767
}

Semantic roles & 50–950 ramp

primary
#BA30B2
secondary
#7DC981
accent
#E24F46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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