#BA42CF#BA42CF

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

Color values

HEX#BA42CF
RGBrgb(186, 66, 207)
HSLhsl(291, 59%, 54%)
HSVhsv(291, 68%, 81%)
CMYKcmyk(10.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(50.50, 66.40, -50.12)
CIE-LCHlch(50.50, 83.19, 322.95°)
OKLaboklab(60.22% 0.1749 -0.14)
OKLCHoklch(60.22% 0.224 321.3)
XYZxyz(33.4591, 18.8423, 60.8939)
Luminance0.1884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42CF #57CF42
analogous
#7342CF #BA42CF #CF429D
triadic
#BA42CF #CFBA42 #42CFBA
tetradic
#BA42CF #CF7342 #57CF42 #429DCF
square
#BA42CF #CF7342 #57CF42 #429DCF
split-complementary
#BA42CF #9DCF42 #42CF73
monochromatic
#6B1F78 #962BA9 #BA42CF #CC73DB #DEA4E8

Accessibility & contrast

On white

4.40
#BA42CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BA42CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42CF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42CF#FFFFFF#000000##000000
##BA42CF1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E70D3
Deuteranopia (green-blind)
#527DCC
Tritanopia (blue-blind)
#BC5B84
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba42cf;
/* rgb */ color: rgb(186, 66, 207);
/* oklch */ color: oklch(60.2% 0.224 321.3);
Tailwind
colors: {
  custom: {
    50: '#d280de',
    500: '#ba42cf',
    950: '#000000',
  },
}
SCSS
$custom: #ba42cf;
$custom-light: #d280de;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42cf",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 291.064,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60216,
    "c": 0.22406,
    "h": 321.3
  },
  "luminance": 0.18841
}

Semantic roles & 50–950 ramp

primary
#BA42CF
secondary
#A1D598
accent
#E3455D
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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