#BA30C5#BA30C5

#BA30C5 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.1% C 0.236 H 324.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA30C5
RGBrgb(186, 48, 197)
HSLhsl(296, 61%, 48%)
HSVhsv(296, 76%, 77%)
CMYKcmyk(5.6%, 75.6%, 0%, 22.7%)
CIE-LABlab(47.73, 70.87, -48.77)
CIE-LCHlch(47.73, 86.03, 325.46°)
OKLaboklab(58.05% 0.1923 -0.136)
OKLCHoklch(58.05% 0.236 324.7)
XYZxyz(31.3839, 16.5863, 54.3609)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30C5 #3BC530
analogous
#6F30C5 #BA30C5 #C53086
triadic
#BA30C5 #C5BA30 #30C5BA
tetradic
#BA30C5 #C56F30 #3BC530 #3086C5
square
#BA30C5 #C56F30 #3BC530 #3086C5
split-complementary
#BA30C5 #86C530 #30C56F
monochromatic
#5D1863 #8C2494 #BA30C5 #CE5BD7 #DD8CE3

Accessibility & contrast

On white

4.86
#BA30C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA30C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30C5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30C5#FFFFFF#000000##FFFFFF
##BA30C51.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#4F77C2
Tritanopia (blue-blind)
#BE4C79
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba30c5;
/* rgb */ color: rgb(186, 48, 197);
/* oklch */ color: oklch(58.1% 0.236 324.7);
Tailwind
colors: {
  custom: {
    50: '#d378d7',
    500: '#ba30c5',
    950: '#000000',
  },
}
SCSS
$custom: #ba30c5;
$custom-light: #d378d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30c5",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 197
  },
  "hsl": {
    "h": 295.57,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58053,
    "c": 0.23553,
    "h": 324.7
  },
  "luminance": 0.16584
}

Semantic roles & 50–950 ramp

primary
#BA30C5
secondary
#89CD84
accent
#E44450
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA30C5

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

Preview Lab → · Contrast checker → · Palette generator →

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