#BA23A2#BA23A2

#BA23A2 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.2% C 0.222 H 335.9°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA23A2
RGBrgb(186, 35, 162)
HSLhsl(310, 68%, 43%)
HSVhsv(310, 81%, 73%)
CMYKcmyk(0%, 81.2%, 12.9%, 27.1%)
CIE-LABlab(44.59, 69.01, -33.16)
CIE-LCHlch(44.59, 76.57, 334.33°)
OKLaboklab(55.2% 0.2026 -0.0906)
OKLCHoklch(55.2% 0.222 335.9)
XYZxyz(27.3728, 14.2524, 35.4848)
Luminance0.1425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA23A2 #23BA3B
analogous
#8623BA #BA23A2 #BA2357
triadic
#BA23A2 #A2BA23 #23A2BA
tetradic
#BA23A2 #BA8623 #23BA3B #2357BA
square
#BA23A2 #BA8623 #23BA3B #2357BA
split-complementary
#BA23A2 #57BA23 #23BA86
monochromatic
#531048 #861975 #BA23A2 #DB3FC2 #E573D3

Accessibility & contrast

On white

5.45
#BA23A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#BA23A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA23A2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA23A2#FFFFFF#000000##FFFFFF
##BA23A21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#5E719F
Tritanopia (blue-blind)
#C43163
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba23a2;
/* rgb */ color: rgb(186, 35, 162);
/* oklch */ color: oklch(55.2% 0.222 335.9);
Tailwind
colors: {
  custom: {
    50: '#d372be',
    500: '#ba23a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba23a2;
$custom-light: #d372be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba23a2",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 309.536,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55195,
    "c": 0.22196,
    "h": 335.9
  },
  "luminance": 0.1425
}

Semantic roles & 50–950 ramp

primary
#BA23A2
secondary
#6DCC7C
accent
#EB583D
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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