#BA23A4#BA23A4

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

Color values

HEX#BA23A4
RGBrgb(186, 35, 164)
HSLhsl(309, 68%, 43%)
HSVhsv(309, 81%, 73%)
CMYKcmyk(0%, 81.2%, 11.8%, 27.1%)
CIE-LABlab(44.69, 69.30, -34.20)
CIE-LCHlch(44.69, 77.27, 333.73°)
OKLaboklab(55.3% 0.2027 -0.0936)
OKLCHoklch(55.3% 0.223 335.2)
XYZxyz(27.5520, 14.3241, 36.4285)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA23A4 #23BA39
analogous
#8423BA #BA23A4 #BA2358
triadic
#BA23A4 #A4BA23 #23A4BA
tetradic
#BA23A4 #BA8423 #23BA39 #2358BA
square
#BA23A4 #BA8423 #23BA39 #2358BA
split-complementary
#BA23A4 #58BA23 #23BA84
monochromatic
#531049 #861977 #BA23A4 #DB3FC4 #E573D4

Accessibility & contrast

On white

5.43
#BA23A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA23A4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA23A4#FFFFFF#000000##FFFFFF
##BA23A41.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA7
Deuteranopia (green-blind)
#5D71A1
Tritanopia (blue-blind)
#C33264
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba23a4;
/* rgb */ color: rgb(186, 35, 164);
/* oklch */ color: oklch(55.3% 0.223 335.2);
Tailwind
colors: {
  custom: {
    50: '#d372bf',
    500: '#ba23a4',
    950: '#000000',
  },
}
SCSS
$custom: #ba23a4;
$custom-light: #d372bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba23a4",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 308.742,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55301,
    "c": 0.22328,
    "h": 335.2
  },
  "luminance": 0.14322
}

Semantic roles & 50–950 ramp

primary
#BA23A4
secondary
#6DCC7B
accent
#EB563D
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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