#BA30B4#BA30B4

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

Color values

HEX#BA30B4
RGBrgb(186, 48, 180)
HSLhsl(303, 59%, 46%)
HSVhsv(303, 74%, 73%)
CMYKcmyk(0%, 74.2%, 3.2%, 27.1%)
CIE-LABlab(46.78, 68.11, -40.38)
CIE-LCHlch(46.78, 79.18, 329.34°)
OKLaboklab(57.06% 0.1927 -0.1115)
OKLCHoklch(57.06% 0.223 329.9)
XYZxyz(29.5447, 15.8506, 44.6746)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B4 #30BA36
analogous
#7B30BA #BA30B4 #BA306F
triadic
#BA30B4 #B4BA30 #30B4BA
tetradic
#BA30B4 #BA7B30 #30BA36 #306FBA
square
#BA30B4 #BA7B30 #30BA36 #306FBA
split-complementary
#BA30B4 #6FBA30 #30BA7B
monochromatic
#591756 #892385 #BA30B4 #D354CD #DF85DC

Accessibility & contrast

On white

5.04
#BA30B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA30B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30B4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B4#FFFFFF#000000##FFFFFF
##BA30B41.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D63B8
Deuteranopia (green-blind)
#5A75B1
Tritanopia (blue-blind)
#C14370
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba30b4;
/* rgb */ color: rgb(186, 48, 180);
/* oklch */ color: oklch(57.1% 0.223 329.9);
Tailwind
colors: {
  custom: {
    50: '#d377cb',
    500: '#ba30b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b4;
$custom-light: #d377cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b4",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 302.609,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57063,
    "c": 0.22267,
    "h": 329.9
  },
  "luminance": 0.15848
}

Semantic roles & 50–950 ramp

primary
#BA30B4
secondary
#7DC980
accent
#E24C46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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