#BA22B7#BA22B7

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

Color values

HEX#BA22B7
RGBrgb(186, 34, 183)
HSLhsl(301, 69%, 43%)
HSVhsv(301, 82%, 73%)
CMYKcmyk(0%, 81.7%, 1.6%, 27.1%)
CIE-LABlab(45.64, 72.34, -43.95)
CIE-LCHlch(45.64, 84.64, 328.72°)
OKLaboklab(56.31% 0.2035 -0.1218)
OKLCHoklch(56.31% 0.237 329.1)
XYZxyz(29.3687, 15.0044, 46.1399)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA22B7 #22BA25
analogous
#7122BA #BA22B7 #BA226B
triadic
#BA22B7 #B7BA22 #22B7BA
tetradic
#BA22B7 #BA7122 #22BA25 #226BBA
square
#BA22B7 #BA7122 #22BA25 #226BBA
split-complementary
#BA22B7 #6BBA22 #22BA71
monochromatic
#530F51 #861984 #BA22B7 #DC3ED9 #E571E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA22B7#FFFFFF#000000##FFFFFF
##BA22B71.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)
#0060BB
Deuteranopia (green-blind)
#5373B4
Tritanopia (blue-blind)
#C13D6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba22b7;
/* rgb */ color: rgb(186, 34, 183);
/* oklch */ color: oklch(56.3% 0.237 329.1);
Tailwind
colors: {
  custom: {
    50: '#d372cd',
    500: '#ba22b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba22b7;
$custom-light: #d372cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba22b7",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 183
  },
  "hsl": {
    "h": 301.184,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.56306,
    "c": 0.23712,
    "h": 329.1
  },
  "luminance": 0.15002
}

Semantic roles & 50–950 ramp

primary
#BA22B7
secondary
#6CCC6E
accent
#EC3F3C
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA22B7

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

Preview Lab → · Contrast checker → · Palette generator →

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