#BA42D0#BA42D0

#BA42D0 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.3% C 0.225 H 321.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA42D0
RGBrgb(186, 66, 208)
HSLhsl(291, 60%, 54%)
HSVhsv(291, 68%, 82%)
CMYKcmyk(10.6%, 68.3%, 0%, 18.4%)
CIE-LABlab(50.56, 66.58, -50.60)
CIE-LCHlch(50.56, 83.63, 322.76°)
OKLaboklab(60.28% 0.1749 -0.1414)
OKLCHoklch(60.28% 0.225 321)
XYZxyz(33.5818, 18.8913, 61.5398)
Luminance0.1889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42D0 #58D042
analogous
#7342D0 #BA42D0 #D0429F
triadic
#BA42D0 #D0BA42 #42D0BA
tetradic
#BA42D0 #D07342 #58D042 #429FD0
square
#BA42D0 #D07342 #58D042 #429FD0
split-complementary
#BA42D0 #9FD042 #42D073
monochromatic
#6B1E79 #972AAA #BA42D0 #CC73DC #DEA4E8

Accessibility & contrast

On white

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

On black

4.78
#BA42D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42D0
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42D0#FFFFFF#000000##000000
##BA42D01.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A70D4
Deuteranopia (green-blind)
#527DCD
Tritanopia (blue-blind)
#BB5B84
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba42d0;
/* rgb */ color: rgb(186, 66, 208);
/* oklch */ color: oklch(60.3% 0.225 321.0);
Tailwind
colors: {
  custom: {
    50: '#d280df',
    500: '#ba42d0',
    950: '#000000',
  },
}
SCSS
$custom: #ba42d0;
$custom-light: #d280df;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42d0",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 290.704,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60276,
    "c": 0.22492,
    "h": 321
  },
  "luminance": 0.1889
}

Semantic roles & 50–950 ramp

primary
#BA42D0
secondary
#A2D599
accent
#E3445D
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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