#BA30B7#BA30B7

#BA30B7 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.225 H 329.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA30B7
RGBrgb(186, 48, 183)
HSLhsl(301, 59%, 46%)
HSVhsv(301, 74%, 73%)
CMYKcmyk(0%, 74.2%, 1.6%, 27.1%)
CIE-LABlab(46.94, 68.58, -41.88)
CIE-LCHlch(46.94, 80.36, 328.59°)
OKLaboklab(57.23% 0.1928 -0.1159)
OKLCHoklch(57.23% 0.225 329)
XYZxyz(29.8536, 15.9742, 46.3015)
Luminance0.1597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B7 #30BA33
analogous
#7830BA #BA30B7 #BA3072
triadic
#BA30B7 #B7BA30 #30B7BA
tetradic
#BA30B7 #BA7830 #30BA33 #3072BA
square
#BA30B7 #BA7830 #30BA33 #3072BA
split-complementary
#BA30B7 #72BA30 #30BA78
monochromatic
#591757 #892387 #BA30B7 #D354D0 #DF85DE

Accessibility & contrast

On white

5.01
#BA30B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA30B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30B7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B7#FFFFFF#000000##FFFFFF
##BA30B71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1864BB
Deuteranopia (green-blind)
#5876B4
Tritanopia (blue-blind)
#C04571
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba30b7;
/* rgb */ color: rgb(186, 48, 183);
/* oklch */ color: oklch(57.2% 0.225 329.0);
Tailwind
colors: {
  custom: {
    50: '#d377cd',
    500: '#ba30b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b7;
$custom-light: #d377cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b7",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 301.304,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57232,
    "c": 0.2249,
    "h": 329
  },
  "luminance": 0.15972
}

Semantic roles & 50–950 ramp

primary
#BA30B7
secondary
#7DC97F
accent
#E24946
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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