#BA30A7#BA30A7

#BA30A7 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.213 H 334.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA30A7
RGBrgb(186, 48, 167)
HSLhsl(308, 59%, 46%)
HSVhsv(308, 74%, 73%)
CMYKcmyk(0%, 74.2%, 10.2%, 27.1%)
CIE-LABlab(46.10, 66.12, -33.77)
CIE-LCHlch(46.10, 74.24, 332.95°)
OKLaboklab(56.36% 0.1922 -0.0924)
OKLCHoklch(56.36% 0.213 334.3)
XYZxyz(28.2820, 15.3455, 38.0242)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A7 #30BA43
analogous
#8830BA #BA30A7 #BA3062
triadic
#BA30A7 #A7BA30 #30A7BA
tetradic
#BA30A7 #BA8830 #30BA43 #3062BA
square
#BA30A7 #BA8830 #30BA43 #3062BA
split-complementary
#BA30A7 #62BA30 #30BA88
monochromatic
#591750 #89237B #BA30A7 #D354C1 #DF85D3

Accessibility & contrast

On white

5.16
#BA30A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA30A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A7#FFFFFF#000000##FFFFFF
##BA30A71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60AA
Deuteranopia (green-blind)
#6074A4
Tritanopia (blue-blind)
#C33D69
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba30a7;
/* rgb */ color: rgb(186, 48, 167);
/* oklch */ color: oklch(56.4% 0.213 334.3);
Tailwind
colors: {
  custom: {
    50: '#d376c1',
    500: '#ba30a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a7;
$custom-light: #d376c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a7",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 167
  },
  "hsl": {
    "h": 308.261,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56361,
    "c": 0.21327,
    "h": 334.3
  },
  "luminance": 0.15343
}

Semantic roles & 50–950 ramp

primary
#BA30A7
secondary
#7DC987
accent
#E25B46
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A7

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

Preview Lab → · Contrast checker → · Palette generator →

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