#BA2BA8#BA2BA8

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

Color values

HEX#BA2BA8
RGBrgb(186, 43, 168)
HSLhsl(308, 62%, 45%)
HSVhsv(308, 77%, 73%)
CMYKcmyk(0%, 76.9%, 9.7%, 27.1%)
CIE-LABlab(45.63, 67.77, -35.11)
CIE-LCHlch(45.63, 76.32, 332.61°)
OKLaboklab(56.04% 0.1967 -0.0963)
OKLCHoklch(56.04% 0.219 333.9)
XYZxyz(28.1817, 14.9965, 38.4486)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BA8 #2BBA3D
analogous
#842BBA #BA2BA8 #BA2B61
triadic
#BA2BA8 #A8BA2B #2BA8BA
tetradic
#BA2BA8 #BA842B #2BBA3D #2B61BA
square
#BA2BA8 #BA842B #2BBA3D #2B61BA
split-complementary
#BA2BA8 #61BA2B #2BBA84
monochromatic
#57144E #88207B #BA2BA8 #D64CC4 #E17ED5

Accessibility & contrast

On white

5.25
#BA2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#BA2BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BA8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BA8#FFFFFF#000000##FFFFFF
##BA2BA81.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAB
Deuteranopia (green-blind)
#5E73A5
Tritanopia (blue-blind)
#C33A68
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ba8;
/* rgb */ color: rgb(186, 43, 168);
/* oklch */ color: oklch(56.0% 0.219 333.9);
Tailwind
colors: {
  custom: {
    50: '#d375c2',
    500: '#ba2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ba8;
$custom-light: #d375c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ba8",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 307.552,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56037,
    "c": 0.21898,
    "h": 333.9
  },
  "luminance": 0.14994
}

Semantic roles & 50–950 ramp

primary
#BA2BA8
secondary
#77CA81
accent
#E65742
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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