#BA42DF#BA42DF

#BA42DF is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.2% C 0.238 H 317.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA42DF
RGBrgb(186, 66, 223)
HSLhsl(286, 71%, 57%)
HSVhsv(286, 70%, 87%)
CMYKcmyk(16.6%, 70.4%, 0%, 12.5%)
CIE-LABlab(51.46, 69.37, -57.72)
CIE-LCHlch(51.46, 90.24, 320.24°)
OKLaboklab(61.2% 0.174 -0.1622)
OKLCHoklch(61.2% 0.238 317)
XYZxyz(35.5152, 19.6647, 71.7226)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42DF #67DF42
analogous
#6C42DF #BA42DF #DF42B6
triadic
#BA42DF #DFBA42 #42DFBA
tetradic
#BA42DF #DF6C42 #67DF42 #42B6DF
square
#BA42DF #DF6C42 #67DF42 #42B6DF
split-complementary
#BA42DF #B6DF42 #42DF6C
monochromatic
#73188E #9D21C3 #BA42DF #CD76E8 #E0ABF1

Accessibility & contrast

On white

4.26
#BA42DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#BA42DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42DF
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42DF#FFFFFF#000000##000000
##BA42DF1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#457EDB
Tritanopia (blue-blind)
#B8628C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba42df;
/* rgb */ color: rgb(186, 66, 223);
/* oklch */ color: oklch(61.2% 0.238 317.0);
Tailwind
colors: {
  custom: {
    50: '#d381ea',
    500: '#ba42df',
    950: '#000000',
  },
}
SCSS
$custom: #ba42df;
$custom-light: #d381ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42df",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 285.86,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61204,
    "c": 0.23791,
    "h": 317
  },
  "luminance": 0.19663
}

Semantic roles & 50–950 ramp

primary
#BA42DF
secondary
#ADDF9E
accent
#EE3A64
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA42DF

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

Preview Lab → · Contrast checker → · Palette generator →

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