#BA23A3#BA23A3

#BA23A3 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.223 H 335.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA23A3
RGBrgb(186, 35, 163)
HSLhsl(309, 68%, 43%)
HSVhsv(309, 81%, 73%)
CMYKcmyk(0%, 81.2%, 12.4%, 27.1%)
CIE-LABlab(44.64, 69.15, -33.68)
CIE-LCHlch(44.64, 76.92, 334.03°)
OKLaboklab(55.25% 0.2027 -0.0921)
OKLCHoklch(55.25% 0.223 335.6)
XYZxyz(27.4620, 14.2881, 35.9548)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA23A3 #23BA3A
analogous
#8523BA #BA23A3 #BA2357
triadic
#BA23A3 #A3BA23 #23A3BA
tetradic
#BA23A3 #BA8523 #23BA3A #2357BA
square
#BA23A3 #BA8523 #23BA3A #2357BA
split-complementary
#BA23A3 #57BA23 #23BA85
monochromatic
#531049 #861976 #BA23A3 #DB3FC3 #E573D3

Accessibility & contrast

On white

5.44
#BA23A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#BA23A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA23A3
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA23A3#FFFFFF#000000##FFFFFF
##BA23A31.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA6
Deuteranopia (green-blind)
#5E71A0
Tritanopia (blue-blind)
#C43163
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba23a3;
/* rgb */ color: rgb(186, 35, 163);
/* oklch */ color: oklch(55.2% 0.223 335.6);
Tailwind
colors: {
  custom: {
    50: '#d372be',
    500: '#ba23a3',
    950: '#000000',
  },
}
SCSS
$custom: #ba23a3;
$custom-light: #d372be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba23a3",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 309.139,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55248,
    "c": 0.22262,
    "h": 335.6
  },
  "luminance": 0.14286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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