#BA42E2#BA42E2

#BA42E2 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.4% C 0.241 H 316.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA42E2
RGBrgb(186, 66, 226)
HSLhsl(285, 73%, 57%)
HSVhsv(285, 71%, 89%)
CMYKcmyk(17.7%, 70.8%, 0%, 11.4%)
CIE-LABlab(51.64, 69.95, -59.12)
CIE-LCHlch(51.64, 91.58, 319.80°)
OKLaboklab(61.4% 0.1737 -0.1663)
OKLCHoklch(61.4% 0.241 316.2)
XYZxyz(35.9233, 19.8279, 73.8717)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42E2 #6AE242
analogous
#6A42E2 #BA42E2 #E242BA
triadic
#BA42E2 #E2BA42 #42E2BA
tetradic
#BA42E2 #E26A42 #6AE242 #42BAE2
square
#BA42E2 #E26A42 #6AE242 #42BAE2
split-complementary
#BA42E2 #BAE242 #42E26A
monochromatic
#741793 #9E1FC8 #BA42E2 #CD77EA #E1ACF2

Accessibility & contrast

On white

4.23
#BA42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42E2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42E2#FFFFFF#000000##000000
##BA42E21.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#427EDE
Tritanopia (blue-blind)
#B7638E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba42e2;
/* rgb */ color: rgb(186, 66, 226);
/* oklch */ color: oklch(61.4% 0.241 316.2);
Tailwind
colors: {
  custom: {
    50: '#d381ec',
    500: '#ba42e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba42e2;
$custom-light: #d381ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42e2",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 285,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61396,
    "c": 0.24053,
    "h": 316.2
  },
  "luminance": 0.19827
}

Semantic roles & 50–950 ramp

primary
#BA42E2
secondary
#B0E09F
accent
#F03866
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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