#BA3DC8#BA3DC8

#BA3DC8 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.224 H 323.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA3DC8
RGBrgb(186, 61, 200)
HSLhsl(294, 56%, 51%)
HSVhsv(294, 70%, 78%)
CMYKcmyk(7%, 69.5%, 0%, 21.6%)
CIE-LABlab(49.43, 67.03, -47.80)
CIE-LCHlch(49.43, 82.33, 324.51°)
OKLaboklab(59.32% 0.1803 -0.1332)
OKLCHoklch(59.32% 0.224 323.5)
XYZxyz(32.3428, 17.9486, 56.3933)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3DC8 #4BC83D
analogous
#743DC8 #BA3DC8 #C83D90
triadic
#BA3DC8 #C8BA3D #3DC8BA
tetradic
#BA3DC8 #C8743D #4BC83D #3D90C8
square
#BA3DC8 #C8743D #4BC83D #3D90C8
split-complementary
#BA3DC8 #90C83D #3DC874
monochromatic
#641F6C #902C9C #BA3DC8 #CB6DD6 #DC9CE3

Accessibility & contrast

On white

4.58
#BA3DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA3DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3DC8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3DC8#FFFFFF#000000##000000
##BA3DC81.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#116CCC
Deuteranopia (green-blind)
#547AC5
Tritanopia (blue-blind)
#BD557E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba3dc8;
/* rgb */ color: rgb(186, 61, 200);
/* oklch */ color: oklch(59.3% 0.224 323.5);
Tailwind
colors: {
  custom: {
    50: '#d27dd9',
    500: '#ba3dc8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3dc8;
$custom-light: #d27dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3dc8",
  "rgb": {
    "r": 186,
    "g": 61,
    "b": 200
  },
  "hsl": {
    "h": 293.957,
    "s": 55.823,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59322,
    "c": 0.22412,
    "h": 323.5
  },
  "luminance": 0.17947
}

Semantic roles & 50–950 ramp

primary
#BA3DC8
secondary
#98CF92
accent
#DF4958
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA3DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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