#BA30A4#BA30A4

#BA30A4 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.211 H 335.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA30A4
RGBrgb(186, 48, 164)
HSLhsl(310, 59%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 74.2%, 11.8%, 27.1%)
CIE-LABlab(45.96, 65.67, -32.22)
CIE-LCHlch(45.96, 73.15, 333.87°)
OKLaboklab(56.21% 0.192 -0.088)
OKLCHoklch(56.21% 0.211 335.4)
XYZxyz(28.0079, 15.2359, 36.5805)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A4 #30BA46
analogous
#8B30BA #BA30A4 #BA305F
triadic
#BA30A4 #A4BA30 #30A4BA
tetradic
#BA30A4 #BA8B30 #30BA46 #305FBA
square
#BA30A4 #BA8B30 #30BA46 #305FBA
split-complementary
#BA30A4 #5FBA30 #30BA8B
monochromatic
#59174E #892379 #BA30A4 #D354BF #DF85D1

Accessibility & contrast

On white

5.19
#BA30A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA30A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A4#FFFFFF#000000##FFFFFF
##BA30A41.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3060A7
Deuteranopia (green-blind)
#6274A1
Tritanopia (blue-blind)
#C33B67
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba30a4;
/* rgb */ color: rgb(186, 48, 164);
/* oklch */ color: oklch(56.2% 0.211 335.4);
Tailwind
colors: {
  custom: {
    50: '#d376bf',
    500: '#ba30a4',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a4;
$custom-light: #d376bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a4",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 309.565,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56206,
    "c": 0.21118,
    "h": 335.4
  },
  "luminance": 0.15233
}

Semantic roles & 50–950 ramp

primary
#BA30A4
secondary
#7DC989
accent
#E25F46
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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