#BA42CE#BA42CE

#BA42CE is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.2% C 0.223 H 321.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BA42CE
RGBrgb(186, 66, 206)
HSLhsl(291, 59%, 53%)
HSVhsv(291, 68%, 81%)
CMYKcmyk(9.7%, 68%, 0%, 19.2%)
CIE-LABlab(50.44, 66.22, -49.64)
CIE-LCHlch(50.44, 82.75, 323.14°)
OKLaboklab(60.16% 0.175 -0.1386)
OKLCHoklch(60.16% 0.223 321.6)
XYZxyz(33.3373, 18.7935, 60.2521)
Luminance0.1879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42CE #56CE42
analogous
#7442CE #BA42CE #CE429C
triadic
#BA42CE #CEBA42 #42CEBA
tetradic
#BA42CE #CE7442 #56CE42 #429CCE
square
#BA42CE #CE7442 #56CE42 #429CCE
split-complementary
#BA42CE #9CCE42 #42CE74
monochromatic
#6A1F77 #962BA7 #BA42CE #CC73DB #DDA3E7

Accessibility & contrast

On white

4.41
#BA42CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#BA42CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42CE
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42CE#FFFFFF#000000##000000
##BA42CE1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#116FD2
Deuteranopia (green-blind)
#537DCB
Tritanopia (blue-blind)
#BC5A83
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba42ce;
/* rgb */ color: rgb(186, 66, 206);
/* oklch */ color: oklch(60.2% 0.223 321.6);
Tailwind
colors: {
  custom: {
    50: '#d280dd',
    500: '#ba42ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba42ce;
$custom-light: #d280dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42ce",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 291.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60157,
    "c": 0.22321,
    "h": 321.6
  },
  "luminance": 0.18792
}

Semantic roles & 50–950 ramp

primary
#BA42CE
secondary
#A0D498
accent
#E2465C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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