#BA42E0#BA42E0

#BA42E0 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.3% C 0.239 H 316.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA42E0
RGBrgb(186, 66, 224)
HSLhsl(286, 72%, 57%)
HSVhsv(286, 71%, 88%)
CMYKcmyk(17%, 70.5%, 0%, 12.2%)
CIE-LABlab(51.52, 69.56, -58.18)
CIE-LCHlch(51.52, 90.69, 320.09°)
OKLaboklab(61.27% 0.1739 -0.1636)
OKLCHoklch(61.27% 0.239 316.8)
XYZxyz(35.6504, 19.7188, 72.4348)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42E0 #68E042
analogous
#6B42E0 #BA42E0 #E042B7
triadic
#BA42E0 #E0BA42 #42E0BA
tetradic
#BA42E0 #E06B42 #68E042 #42B7E0
square
#BA42E0 #E06B42 #68E042 #42B7E0
split-complementary
#BA42E0 #B7E042 #42E06B
monochromatic
#731890 #9D20C5 #BA42E0 #CD77E9 #E0ABF1

Accessibility & contrast

On white

4.25
#BA42E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#BA42E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42E0
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42E0#FFFFFF#000000##000000
##BA42E01.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E4
Deuteranopia (green-blind)
#447EDC
Tritanopia (blue-blind)
#B8628D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba42e0;
/* rgb */ color: rgb(186, 66, 224);
/* oklch */ color: oklch(61.3% 0.239 316.8);
Tailwind
colors: {
  custom: {
    50: '#d381ea',
    500: '#ba42e0',
    950: '#000000',
  },
}
SCSS
$custom: #ba42e0;
$custom-light: #d381ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42e0",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 285.57,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61268,
    "c": 0.23878,
    "h": 316.8
  },
  "luminance": 0.19717
}

Semantic roles & 50–950 ramp

primary
#BA42E0
secondary
#AEDF9F
accent
#EF3965
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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