#BA23A5#BA23A5

#BA23A5 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.224 H 334.9°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#BA23A5
RGBrgb(186, 35, 165)
HSLhsl(308, 68%, 43%)
HSVhsv(308, 81%, 73%)
CMYKcmyk(0%, 81.2%, 11.3%, 27.1%)
CIE-LABlab(44.75, 69.44, -34.71)
CIE-LCHlch(44.75, 77.63, 333.44°)
OKLaboklab(55.35% 0.2028 -0.0951)
OKLCHoklch(55.35% 0.224 334.9)
XYZxyz(27.6426, 14.3603, 36.9060)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA23A5 #23BA38
analogous
#8323BA #BA23A5 #BA235A
triadic
#BA23A5 #A5BA23 #23A5BA
tetradic
#BA23A5 #BA8323 #23BA38 #235ABA
square
#BA23A5 #BA8323 #23BA38 #235ABA
split-complementary
#BA23A5 #5ABA23 #23BA83
monochromatic
#53104A #861977 #BA23A5 #DB3FC5 #E573D5

Accessibility & contrast

On white

5.42
#BA23A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#BA23A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA23A5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA23A5#FFFFFF#000000##FFFFFF
##BA23A51.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA8
Deuteranopia (green-blind)
#5D71A2
Tritanopia (blue-blind)
#C33364
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba23a5;
/* rgb */ color: rgb(186, 35, 165);
/* oklch */ color: oklch(55.4% 0.224 334.9);
Tailwind
colors: {
  custom: {
    50: '#d372c0',
    500: '#ba23a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba23a5;
$custom-light: #d372c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba23a5",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 308.344,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55354,
    "c": 0.22396,
    "h": 334.9
  },
  "luminance": 0.14358
}

Semantic roles & 50–950 ramp

primary
#BA23A5
secondary
#6DCC7A
accent
#EB553D
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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