#BA22BA#BA22BA

#BA22BA is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.5% C 0.239 H 328.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA22BA
RGBrgb(186, 34, 186)
HSLhsl(300, 69%, 43%)
HSVhsv(300, 82%, 73%)
CMYKcmyk(0%, 81.7%, 0%, 27.1%)
CIE-LABlab(45.81, 72.80, -45.43)
CIE-LCHlch(45.81, 85.81, 328.03°)
OKLaboklab(56.48% 0.2033 -0.1261)
OKLCHoklch(56.48% 0.239 328.2)
XYZxyz(29.6843, 15.1306, 47.8019)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA22BA #22BA22
analogous
#6E22BA #BA22BA #BA226E
triadic
#BA22BA #BABA22 #22BABA
tetradic
#BA22BA #BA6E22 #22BA22 #226EBA
square
#BA22BA #BA6E22 #22BA22 #226EBA
split-complementary
#BA22BA #6EBA22 #22BA6E
monochromatic
#530F53 #861986 #BA22BA #DC3EDC #E571E5

Accessibility & contrast

On white

5.22
#BA22BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA22BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA22BA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA22BA#FFFFFF#000000##FFFFFF
##BA22BA1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#5173B6
Tritanopia (blue-blind)
#C03E70
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba22ba;
/* rgb */ color: rgb(186, 34, 186);
/* oklch */ color: oklch(56.5% 0.239 328.2);
Tailwind
colors: {
  custom: {
    50: '#d372cf',
    500: '#ba22ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba22ba;
$custom-light: #d372cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba22ba",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.56483,
    "c": 0.23925,
    "h": 328.2
  },
  "luminance": 0.15128
}

Semantic roles & 50–950 ramp

primary
#BA22BA
secondary
#6CCC6C
accent
#EC3C3C
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA22BA

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

Preview Lab → · Contrast checker → · Palette generator →

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