#BA30C1#BA30C1

#BA30C1 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.8% C 0.232 H 325.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA30C1
RGBrgb(186, 48, 193)
HSLhsl(297, 60%, 47%)
HSVhsv(297, 75%, 76%)
CMYKcmyk(3.6%, 75.1%, 0%, 24.3%)
CIE-LABlab(47.50, 70.21, -46.82)
CIE-LCHlch(47.50, 84.39, 326.30°)
OKLaboklab(57.81% 0.1925 -0.1303)
OKLCHoklch(57.81% 0.232 325.9)
XYZxyz(30.9317, 16.4054, 51.9791)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30C1 #37C130
analogous
#7130C1 #BA30C1 #C13080
triadic
#BA30C1 #C1BA30 #30C1BA
tetradic
#BA30C1 #C17130 #37C130 #3080C1
square
#BA30C1 #C17130 #37C130 #3080C1
split-complementary
#BA30C1 #80C130 #30C171
monochromatic
#5C185F #8B2490 #BA30C1 #D059D6 #DE8AE2

Accessibility & contrast

On white

4.91
#BA30C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#BA30C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30C1
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30C1#FFFFFF#000000##FFFFFF
##BA30C11.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C5
Deuteranopia (green-blind)
#5276BE
Tritanopia (blue-blind)
#BF4A77
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba30c1;
/* rgb */ color: rgb(186, 48, 193);
/* oklch */ color: oklch(57.8% 0.232 325.9);
Tailwind
colors: {
  custom: {
    50: '#d377d4',
    500: '#ba30c1',
    950: '#000000',
  },
}
SCSS
$custom: #ba30c1;
$custom-light: #d377d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30c1",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 193
  },
  "hsl": {
    "h": 297.103,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57813,
    "c": 0.23246,
    "h": 325.9
  },
  "luminance": 0.16403
}

Semantic roles & 50–950 ramp

primary
#BA30C1
secondary
#85CC81
accent
#E3444C
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA30C1

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

Preview Lab → · Contrast checker → · Palette generator →

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