#BA30B0#BA30B0

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

Color values

HEX#BA30B0
RGBrgb(186, 48, 176)
HSLhsl(304, 59%, 46%)
HSVhsv(304, 74%, 73%)
CMYKcmyk(0%, 74.2%, 5.4%, 27.1%)
CIE-LABlab(46.57, 67.48, -38.36)
CIE-LCHlch(46.57, 77.62, 330.38°)
OKLaboklab(56.84% 0.1926 -0.1057)
OKLCHoklch(56.84% 0.22 331.3)
XYZxyz(29.1431, 15.6900, 42.5594)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B0 #30BA3A
analogous
#7F30BA #BA30B0 #BA306B
triadic
#BA30B0 #B0BA30 #30B0BA
tetradic
#BA30B0 #BA7F30 #30BA3A #306BBA
square
#BA30B0 #BA7F30 #30BA3A #306BBA
split-complementary
#BA30B0 #6BBA30 #30BA7F
monochromatic
#591754 #892382 #BA30B0 #D354CA #DF85D9

Accessibility & contrast

On white

5.08
#BA30B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA30B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30B0
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B0#FFFFFF#000000##FFFFFF
##BA30B01.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B3
Deuteranopia (green-blind)
#5C75AD
Tritanopia (blue-blind)
#C2416E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba30b0;
/* rgb */ color: rgb(186, 48, 176);
/* oklch */ color: oklch(56.8% 0.220 331.3);
Tailwind
colors: {
  custom: {
    50: '#d377c8',
    500: '#ba30b0',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b0;
$custom-light: #d377c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b0",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 176
  },
  "hsl": {
    "h": 304.348,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56842,
    "c": 0.21974,
    "h": 331.3
  },
  "luminance": 0.15688
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA30B0

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

Preview Lab → · Contrast checker → · Palette generator →

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