#BA42E7#BA42E7

#BA42E7 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.7% C 0.245 H 315.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA42E7
RGBrgb(186, 66, 231)
HSLhsl(284, 77%, 58%)
HSVhsv(284, 71%, 91%)
CMYKcmyk(19.5%, 71.4%, 0%, 9.4%)
CIE-LABlab(51.96, 70.91, -61.43)
CIE-LCHlch(51.96, 93.82, 319.10°)
OKLaboklab(61.72% 0.1732 -0.1731)
OKLCHoklch(61.72% 0.245 315)
XYZxyz(36.6194, 20.1064, 77.5378)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42E7 #6FE742
analogous
#6742E7 #BA42E7 #E742C2
triadic
#BA42E7 #E7BA42 #42E7BA
tetradic
#BA42E7 #E76742 #6FE742 #42C2E7
square
#BA42E7 #E76742 #6FE742 #42C2E7
split-complementary
#BA42E7 #C2E742 #42E767
monochromatic
#76149B #9F1BD1 #BA42E7 #CE78EE #E2AFF5

Accessibility & contrast

On white

4.18
#BA42E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BA42E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42E7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42E7#FFFFFF#000000##000000
##BA42E71.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#3C7FE3
Tritanopia (blue-blind)
#B66591
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba42e7;
/* rgb */ color: rgb(186, 66, 231);
/* oklch */ color: oklch(61.7% 0.245 315.0);
Tailwind
colors: {
  custom: {
    50: '#d381ef',
    500: '#ba42e7',
    950: '#000000',
  },
}
SCSS
$custom: #ba42e7;
$custom-light: #d381ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42e7",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 283.636,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61721,
    "c": 0.24492,
    "h": 315
  },
  "luminance": 0.20105
}

Semantic roles & 50–950 ramp

primary
#BA42E7
secondary
#B3E3A2
accent
#F43468
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BA42E7

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

Preview Lab → · Contrast checker → · Palette generator →

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