#BA30B5#BA30B5

#BA30B5 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.1% C 0.223 H 329.6°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA30B5
RGBrgb(186, 48, 181)
HSLhsl(302, 59%, 46%)
HSVhsv(302, 74%, 73%)
CMYKcmyk(0%, 74.2%, 2.7%, 27.1%)
CIE-LABlab(46.83, 68.27, -40.88)
CIE-LCHlch(46.83, 79.57, 329.09°)
OKLaboklab(57.12% 0.1927 -0.113)
OKLCHoklch(57.12% 0.223 329.6)
XYZxyz(29.6470, 15.8915, 45.2130)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B5 #30BA35
analogous
#7A30BA #BA30B5 #BA3070
triadic
#BA30B5 #B5BA30 #30B5BA
tetradic
#BA30B5 #BA7A30 #30BA35 #3070BA
square
#BA30B5 #BA7A30 #30BA35 #3070BA
split-complementary
#BA30B5 #70BA30 #30BA7A
monochromatic
#591756 #892386 #BA30B5 #D354CE #DF85DC

Accessibility & contrast

On white

5.03
#BA30B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA30B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30B5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B5#FFFFFF#000000##FFFFFF
##BA30B51.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B63B9
Deuteranopia (green-blind)
#5975B2
Tritanopia (blue-blind)
#C14470
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba30b5;
/* rgb */ color: rgb(186, 48, 181);
/* oklch */ color: oklch(57.1% 0.223 329.6);
Tailwind
colors: {
  custom: {
    50: '#d377cc',
    500: '#ba30b5',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b5;
$custom-light: #d377cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b5",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 302.174,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57119,
    "c": 0.22341,
    "h": 329.6
  },
  "luminance": 0.15889
}

Semantic roles & 50–950 ramp

primary
#BA30B5
secondary
#7DC980
accent
#E24B46
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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