#BA3BA5#BA3BA5

#BA3BA5 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.2% C 0.199 H 335.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA3BA5
RGBrgb(186, 59, 165)
HSLhsl(310, 52%, 48%)
HSVhsv(310, 68%, 73%)
CMYKcmyk(0%, 68.3%, 11.3%, 27.1%)
CIE-LABlab(47.35, 62.02, -30.63)
CIE-LCHlch(47.35, 69.17, 333.72°)
OKLaboklab(57.23% 0.1808 -0.0835)
OKLCHoklch(57.23% 0.199 335.2)
XYZxyz(28.6055, 16.2861, 37.2270)
Luminance0.1628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3BA5 #3BBA50
analogous
#8F3BBA #BA3BA5 #BA3B65
triadic
#BA3BA5 #A5BA3B #3BA5BA
tetradic
#BA3BA5 #BA8F3B #3BBA50 #3B65BA
square
#BA3BA5 #BA8F3B #3BBA50 #3B65BA
split-complementary
#BA3BA5 #65BA3B #3BBA8F
monochromatic
#5D1E53 #8C2C7C #BA3BA5 #CE64BC #DD93D0

Accessibility & contrast

On white

4.93
#BA3BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA3BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3BA5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3BA5#FFFFFF#000000##FFFFFF
##BA3BA51.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A8
Deuteranopia (green-blind)
#6677A2
Tritanopia (blue-blind)
#C3446B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3ba5;
/* rgb */ color: rgb(186, 59, 165);
/* oklch */ color: oklch(57.2% 0.199 335.2);
Tailwind
colors: {
  custom: {
    50: '#d27bc0',
    500: '#ba3ba5',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ba5;
$custom-light: #d27bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ba5",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 309.921,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.19919,
    "h": 335.2
  },
  "luminance": 0.16284
}

Semantic roles & 50–950 ramp

primary
#BA3BA5
secondary
#89C893
accent
#DB644D
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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