#BA23BD#BA23BD

#BA23BD is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.7% C 0.241 H 327.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA23BD
RGBrgb(186, 35, 189)
HSLhsl(299, 69%, 44%)
HSVhsv(299, 81%, 74%)
CMYKcmyk(1.6%, 81.5%, 0%, 25.9%)
CIE-LABlab(46.07, 73.04, -46.78)
CIE-LCHlch(46.07, 86.74, 327.36°)
OKLaboklab(56.72% 0.2025 -0.1301)
OKLCHoklch(56.72% 0.241 327.3)
XYZxyz(30.0356, 15.3175, 49.5089)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA23BD #26BD23
analogous
#6D23BD #BA23BD #BD2373
triadic
#BA23BD #BDBA23 #23BDBA
tetradic
#BA23BD #BD6D23 #26BD23 #2373BD
square
#BA23BD #BD6D23 #26BD23 #2373BD
split-complementary
#BA23BD #73BD23 #23BD6D
monochromatic
#541056 #871989 #BA23BD #D941DC #E375E5

Accessibility & contrast

On white

5.17
#BA23BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BA23BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA23BD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA23BD#FFFFFF#000000##FFFFFF
##BA23BD1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#4F73B9
Tritanopia (blue-blind)
#C04172
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba23bd;
/* rgb */ color: rgb(186, 35, 189);
/* oklch */ color: oklch(56.7% 0.241 327.3);
Tailwind
colors: {
  custom: {
    50: '#d373d1',
    500: '#ba23bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba23bd;
$custom-light: #d373d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba23bd",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 189
  },
  "hsl": {
    "h": 298.831,
    "s": 68.75,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.24066,
    "h": 327.3
  },
  "luminance": 0.15315
}

Semantic roles & 50–950 ramp

primary
#BA23BD
secondary
#71CD6F
accent
#EC3C40
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA23BD

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

Preview Lab → · Contrast checker → · Palette generator →

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