#BA42D4#BA42D4

#BA42D4 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.5% C 0.228 H 319.9°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA42D4
RGBrgb(186, 66, 212)
HSLhsl(289, 63%, 55%)
HSVhsv(289, 69%, 83%)
CMYKcmyk(12.3%, 68.9%, 0%, 16.9%)
CIE-LABlab(50.79, 67.31, -52.52)
CIE-LCHlch(50.79, 85.38, 322.04°)
OKLaboklab(60.52% 0.1748 -0.147)
OKLCHoklch(60.52% 0.228 319.9)
XYZxyz(34.0801, 19.0907, 64.1643)
Luminance0.1909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42D4 #5CD442
analogous
#7142D4 #BA42D4 #D442A5
triadic
#BA42D4 #D4BA42 #42D4BA
tetradic
#BA42D4 #D47142 #5CD442 #42A5D4
square
#BA42D4 #D47142 #5CD442 #42A5D4
split-complementary
#BA42D4 #A5D442 #42D471
monochromatic
#6D1D7F #9828B1 #BA42D4 #CC74DF #DEA6EB

Accessibility & contrast

On white

4.36
#BA42D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#BA42D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42D4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42D4#FFFFFF#000000##000000
##BA42D41.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071D8
Deuteranopia (green-blind)
#4E7DD1
Tritanopia (blue-blind)
#BB5D86
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba42d4;
/* rgb */ color: rgb(186, 66, 212);
/* oklch */ color: oklch(60.5% 0.228 319.9);
Tailwind
colors: {
  custom: {
    50: '#d380e2',
    500: '#ba42d4',
    950: '#000000',
  },
}
SCSS
$custom: #ba42d4;
$custom-light: #d380e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42d4",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 289.315,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60518,
    "c": 0.22836,
    "h": 319.9
  },
  "luminance": 0.19089
}

Semantic roles & 50–950 ramp

primary
#BA42D4
secondary
#A5D89A
accent
#E6425F
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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