#BA42CD#BA42CD

#BA42CD is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.1% C 0.222 H 321.9°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA42CD
RGBrgb(186, 66, 205)
HSLhsl(292, 58%, 53%)
HSVhsv(292, 68%, 80%)
CMYKcmyk(9.3%, 67.8%, 0%, 19.6%)
CIE-LABlab(50.39, 66.03, -49.15)
CIE-LCHlch(50.39, 82.32, 323.34°)
OKLaboklab(60.1% 0.175 -0.1372)
OKLCHoklch(60.1% 0.222 321.9)
XYZxyz(33.2162, 18.7451, 59.6143)
Luminance0.1874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42CD #55CD42
analogous
#7542CD #BA42CD #CD429A
triadic
#BA42CD #CDBA42 #42CDBA
tetradic
#BA42CD #CD7542 #55CD42 #429ACD
square
#BA42CD #CD7542 #55CD42 #429ACD
split-complementary
#BA42CD #9ACD42 #42CD75
monochromatic
#6A1F76 #952CA6 #BA42CD #CC72DA #DDA3E7

Accessibility & contrast

On white

4.42
#BA42CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#BA42CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42CD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42CD#FFFFFF#000000##000000
##BA42CD1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#146FD1
Deuteranopia (green-blind)
#547CCA
Tritanopia (blue-blind)
#BC5A83
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba42cd;
/* rgb */ color: rgb(186, 66, 205);
/* oklch */ color: oklch(60.1% 0.222 321.9);
Tailwind
colors: {
  custom: {
    50: '#d280dd',
    500: '#ba42cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba42cd;
$custom-light: #d280dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42cd",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 291.799,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60097,
    "c": 0.22236,
    "h": 321.9
  },
  "luminance": 0.18743
}

Semantic roles & 50–950 ramp

primary
#BA42CD
secondary
#A0D397
accent
#E1465C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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