#BA2BA7#BA2BA7

#BA2BA7 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.218 H 334.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA2BA7
RGBrgb(186, 43, 167)
HSLhsl(308, 62%, 45%)
HSVhsv(308, 77%, 73%)
CMYKcmyk(0%, 76.9%, 10.2%, 27.1%)
CIE-LABlab(45.58, 67.62, -34.59)
CIE-LCHlch(45.58, 75.95, 332.91°)
OKLaboklab(55.98% 0.1966 -0.0948)
OKLCHoklch(55.98% 0.218 334.3)
XYZxyz(28.0889, 14.9594, 37.9598)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BA7 #2BBA3E
analogous
#852BBA #BA2BA7 #BA2B60
triadic
#BA2BA7 #A7BA2B #2BA7BA
tetradic
#BA2BA7 #BA852B #2BBA3E #2B60BA
square
#BA2BA7 #BA852B #2BBA3E #2B60BA
split-complementary
#BA2BA7 #60BA2B #2BBA85
monochromatic
#57144E #88207A #BA2BA7 #D64CC3 #E17ED4

Accessibility & contrast

On white

5.26
#BA2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA2BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BA7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BA7#FFFFFF#000000##FFFFFF
##BA2BA71.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAA
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#C33967
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ba7;
/* rgb */ color: rgb(186, 43, 167);
/* oklch */ color: oklch(56.0% 0.218 334.3);
Tailwind
colors: {
  custom: {
    50: '#d375c1',
    500: '#ba2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ba7;
$custom-light: #d375c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ba7",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 307.972,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55984,
    "c": 0.21829,
    "h": 334.3
  },
  "luminance": 0.14957
}

Semantic roles & 50–950 ramp

primary
#BA2BA7
secondary
#77CA82
accent
#E65842
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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