#BA42D7#BA42D7

#BA42D7 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.231 H 319.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA42D7
RGBrgb(186, 66, 215)
HSLhsl(288, 65%, 55%)
HSVhsv(288, 69%, 84%)
CMYKcmyk(13.5%, 69.3%, 0%, 15.7%)
CIE-LABlab(50.97, 67.87, -53.94)
CIE-LCHlch(50.97, 86.70, 321.52°)
OKLaboklab(60.7% 0.1746 -0.1512)
OKLCHoklch(60.7% 0.231 319.1)
XYZxyz(34.4620, 19.2434, 66.1759)
Luminance0.1924 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42D7 #5FD742
analogous
#6F42D7 #BA42D7 #D742AA
triadic
#BA42D7 #D7BA42 #42D7BA
tetradic
#BA42D7 #D76F42 #5FD742 #42AAD7
square
#BA42D7 #D76F42 #5FD742 #42AAD7
split-complementary
#BA42D7 #AAD742 #42D76F
monochromatic
#6F1C83 #9A26B5 #BA42D7 #CC75E2 #DFA7EC

Accessibility & contrast

On white

4.33
#BA42D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#BA42D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42D7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42D7#FFFFFF#000000##000000
##BA42D71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DB
Deuteranopia (green-blind)
#4C7DD4
Tritanopia (blue-blind)
#BA5E88
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba42d7;
/* rgb */ color: rgb(186, 66, 215);
/* oklch */ color: oklch(60.7% 0.231 319.1);
Tailwind
colors: {
  custom: {
    50: '#d380e4',
    500: '#ba42d7',
    950: '#000000',
  },
}
SCSS
$custom: #ba42d7;
$custom-light: #d380e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42d7",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 288.322,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60703,
    "c": 0.23095,
    "h": 319.1
  },
  "luminance": 0.19242
}

Semantic roles & 50–950 ramp

primary
#BA42D7
secondary
#A7DA9B
accent
#E84061
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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