#BA30AF#BA30AF

#BA30AF is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.8% C 0.219 H 331.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA30AF
RGBrgb(186, 48, 175)
HSLhsl(305, 59%, 46%)
HSVhsv(305, 74%, 73%)
CMYKcmyk(0%, 74.2%, 5.9%, 27.1%)
CIE-LABlab(46.51, 67.33, -37.85)
CIE-LCHlch(46.51, 77.24, 330.65°)
OKLaboklab(56.79% 0.1926 -0.1042)
OKLCHoklch(56.79% 0.219 331.6)
XYZxyz(29.0445, 15.6505, 42.0403)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30AF #30BA3B
analogous
#8030BA #BA30AF #BA306A
triadic
#BA30AF #AFBA30 #30AFBA
tetradic
#BA30AF #BA8030 #30BA3B #306ABA
square
#BA30AF #BA8030 #30BA3B #306ABA
split-complementary
#BA30AF #6ABA30 #30BA80
monochromatic
#591753 #892381 #BA30AF #D354C9 #DF85D8

Accessibility & contrast

On white

5.09
#BA30AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BA30AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30AF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30AF#FFFFFF#000000##FFFFFF
##BA30AF1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#5C75AC
Tritanopia (blue-blind)
#C2416D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba30af;
/* rgb */ color: rgb(186, 48, 175);
/* oklch */ color: oklch(56.8% 0.219 331.6);
Tailwind
colors: {
  custom: {
    50: '#d377c7',
    500: '#ba30af',
    950: '#000000',
  },
}
SCSS
$custom: #ba30af;
$custom-light: #d377c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30af",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 304.783,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56787,
    "c": 0.21901,
    "h": 331.6
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#BA30AF
secondary
#7DC983
accent
#E25246
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30AF

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

Preview Lab → · Contrast checker → · Palette generator →

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