#BA3ED9#BA3ED9

#BA3ED9 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.5% C 0.237 H 318.8°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA3ED9
RGBrgb(186, 62, 217)
HSLhsl(288, 67%, 55%)
HSVhsv(288, 71%, 85%)
CMYKcmyk(14.3%, 71.4%, 0%, 14.9%)
CIE-LABlab(50.56, 69.73, -55.74)
CIE-LCHlch(50.56, 89.27, 321.37°)
OKLaboklab(60.45% 0.1784 -0.1564)
OKLCHoklch(60.45% 0.237 318.8)
XYZxyz(34.4950, 18.8957, 67.4624)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3ED9 #5DD93E
analogous
#6D3ED9 #BA3ED9 #D93EAB
triadic
#BA3ED9 #D9BA3E #3ED9BA
tetradic
#BA3ED9 #D96D3E #5DD93E #3EABD9
square
#BA3ED9 #D96D3E #5DD93E #3EABD9
split-complementary
#BA3ED9 #ABD93E #3ED96D
monochromatic
#6E1A83 #9924B6 #BA3ED9 #CC71E3 #DFA4ED

Accessibility & contrast

On white

4.39
#BA3ED9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#BA3ED9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3ED9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3ED9#FFFFFF#000000##000000
##BA3ED91.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DD
Deuteranopia (green-blind)
#477CD5
Tritanopia (blue-blind)
#BA5D88
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba3ed9;
/* rgb */ color: rgb(186, 62, 217);
/* oklch */ color: oklch(60.5% 0.237 318.8);
Tailwind
colors: {
  custom: {
    50: '#d37ee5',
    500: '#ba3ed9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ed9;
$custom-light: #d37ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ed9",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 217
  },
  "hsl": {
    "h": 288,
    "s": 67.1,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60451,
    "c": 0.23723,
    "h": 318.8
  },
  "luminance": 0.18894
}

Semantic roles & 50–950 ramp

primary
#BA3ED9
secondary
#A6DA99
accent
#EA3E60
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA3ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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