#BA30AD#BA30AD

#BA30AD is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.218 H 332.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA30AD
RGBrgb(186, 48, 173)
HSLhsl(306, 59%, 46%)
HSVhsv(306, 74%, 73%)
CMYKcmyk(0%, 74.2%, 7%, 27.1%)
CIE-LABlab(46.41, 67.02, -36.84)
CIE-LCHlch(46.41, 76.48, 331.20°)
OKLaboklab(56.68% 0.1925 -0.1013)
OKLCHoklch(56.68% 0.218 332.3)
XYZxyz(28.8496, 15.5725, 41.0134)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30AD #30BA3D
analogous
#8230BA #BA30AD #BA3068
triadic
#BA30AD #ADBA30 #30ADBA
tetradic
#BA30AD #BA8230 #30BA3D #3068BA
square
#BA30AD #BA8230 #30BA3D #3068BA
split-complementary
#BA30AD #68BA30 #30BA82
monochromatic
#591753 #892380 #BA30AD #D354C7 #DF85D7

Accessibility & contrast

On white

5.10
#BA30AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA30AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30AD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30AD#FFFFFF#000000##FFFFFF
##BA30AD1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B0
Deuteranopia (green-blind)
#5D75AA
Tritanopia (blue-blind)
#C2406C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba30ad;
/* rgb */ color: rgb(186, 48, 173);
/* oklch */ color: oklch(56.7% 0.218 332.3);
Tailwind
colors: {
  custom: {
    50: '#d377c6',
    500: '#ba30ad',
    950: '#000000',
  },
}
SCSS
$custom: #ba30ad;
$custom-light: #d377c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30ad",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 173
  },
  "hsl": {
    "h": 305.652,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56679,
    "c": 0.21756,
    "h": 332.3
  },
  "luminance": 0.1557
}

Semantic roles & 50–950 ramp

primary
#BA30AD
secondary
#7DC984
accent
#E25446
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30AD

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

Preview Lab → · Contrast checker → · Palette generator →

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