#BA3EA7#BA3EA7

#BA3EA7 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.6% C 0.197 H 334.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA3EA7
RGBrgb(186, 62, 167)
HSLhsl(309, 50%, 49%)
HSVhsv(309, 67%, 73%)
CMYKcmyk(0%, 66.7%, 10.2%, 27.1%)
CIE-LABlab(47.85, 61.19, -31.03)
CIE-LCHlch(47.85, 68.61, 333.11°)
OKLaboklab(57.62% 0.1777 -0.0847)
OKLCHoklch(57.62% 0.197 334.5)
XYZxyz(28.9476, 16.6768, 38.2461)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EA7 #3EBA51
analogous
#8F3EBA #BA3EA7 #BA3E69
triadic
#BA3EA7 #A7BA3E #3EA7BA
tetradic
#BA3EA7 #BA8F3E #3EBA51 #3E69BA
square
#BA3EA7 #BA8F3E #3EBA51 #3E69BA
split-complementary
#BA3EA7 #69BA3E #3EBA8F
monochromatic
#5E1F55 #8C2F7E #BA3EA7 #CD68BD #DC96D1

Accessibility & contrast

On white

4.84
#BA3EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BA3EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EA7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EA7#FFFFFF#000000##FFFFFF
##BA3EA71.004.844.334.84
#FFFFFF4.841.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D66AA
Deuteranopia (green-blind)
#6678A4
Tritanopia (blue-blind)
#C3476D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3ea7;
/* rgb */ color: rgb(186, 62, 167);
/* oklch */ color: oklch(57.6% 0.197 334.5);
Tailwind
colors: {
  custom: {
    50: '#d27dc1',
    500: '#ba3ea7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ea7;
$custom-light: #d27dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ea7",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 309.194,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57623,
    "c": 0.19685,
    "h": 334.5
  },
  "luminance": 0.16674
}

Semantic roles & 50–950 ramp

primary
#BA3EA7
secondary
#8CC895
accent
#DA644E
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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