#BA3EA9#BA3EA9

#BA3EA9 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.7% C 0.198 H 333.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA3EA9
RGBrgb(186, 62, 169)
HSLhsl(308, 50%, 49%)
HSVhsv(308, 67%, 73%)
CMYKcmyk(0%, 66.7%, 9.1%, 27.1%)
CIE-LABlab(47.95, 61.50, -32.06)
CIE-LCHlch(47.95, 69.35, 332.47°)
OKLaboklab(57.72% 0.1779 -0.0876)
OKLCHoklch(57.72% 0.198 333.8)
XYZxyz(29.1339, 16.7513, 39.2273)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EA9 #3EBA4F
analogous
#8D3EBA #BA3EA9 #BA3E6B
triadic
#BA3EA9 #A9BA3E #3EA9BA
tetradic
#BA3EA9 #BA8D3E #3EBA4F #3E6BBA
square
#BA3EA9 #BA8D3E #3EBA4F #3E6BBA
split-complementary
#BA3EA9 #6BBA3E #3EBA8D
monochromatic
#5E1F56 #8C2F7F #BA3EA9 #CD68BF #DC96D3

Accessibility & contrast

On white

4.83
#BA3EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BA3EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EA9
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EA9#FFFFFF#000000##FFFFFF
##BA3EA91.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AC
Deuteranopia (green-blind)
#6578A6
Tritanopia (blue-blind)
#C2486E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3ea9;
/* rgb */ color: rgb(186, 62, 169);
/* oklch */ color: oklch(57.7% 0.198 333.8);
Tailwind
colors: {
  custom: {
    50: '#d27dc3',
    500: '#ba3ea9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ea9;
$custom-light: #d27dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ea9",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 308.226,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57723,
    "c": 0.19834,
    "h": 333.8
  },
  "luminance": 0.16749
}

Semantic roles & 50–950 ramp

primary
#BA3EA9
secondary
#8CC894
accent
#DA614E
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA3EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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