#BA30B3#BA30B3

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

Color values

HEX#BA30B3
RGBrgb(186, 48, 179)
HSLhsl(303, 59%, 46%)
HSVhsv(303, 74%, 73%)
CMYKcmyk(0%, 74.2%, 3.8%, 27.1%)
CIE-LABlab(46.72, 67.95, -39.87)
CIE-LCHlch(46.72, 78.79, 329.59°)
OKLaboklab(57.01% 0.1927 -0.1101)
OKLCHoklch(57.01% 0.222 330.3)
XYZxyz(29.4432, 15.8100, 44.1400)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B3 #30BA37
analogous
#7C30BA #BA30B3 #BA306E
triadic
#BA30B3 #B3BA30 #30B3BA
tetradic
#BA30B3 #BA7C30 #30BA37 #306EBA
square
#BA30B3 #BA7C30 #30BA37 #306EBA
split-complementary
#BA30B3 #6EBA30 #30BA7C
monochromatic
#591755 #892384 #BA30B3 #D354CD #DF85DB

Accessibility & contrast

On white

5.05
#BA30B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA30B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30B3
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B3#FFFFFF#000000##FFFFFF
##BA30B31.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B7
Deuteranopia (green-blind)
#5A75B0
Tritanopia (blue-blind)
#C1436F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba30b3;
/* rgb */ color: rgb(186, 48, 179);
/* oklch */ color: oklch(57.0% 0.222 330.3);
Tailwind
colors: {
  custom: {
    50: '#d377ca',
    500: '#ba30b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b3;
$custom-light: #d377ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b3",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 303.043,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57007,
    "c": 0.22194,
    "h": 330.3
  },
  "luminance": 0.15808
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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