#BA42C4#BA42C4

#BA42C4 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.6% C 0.215 H 324.6°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA42C4
RGBrgb(186, 66, 196)
HSLhsl(295, 52%, 51%)
HSVhsv(295, 66%, 77%)
CMYKcmyk(5.1%, 66.3%, 0%, 23.1%)
CIE-LABlab(49.89, 64.43, -44.77)
CIE-LCHlch(49.89, 78.46, 325.21°)
OKLaboklab(59.57% 0.175 -0.1244)
OKLCHoklch(59.57% 0.215 324.6)
XYZxyz(32.1609, 18.3230, 54.0566)
Luminance0.1832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42C4 #4CC442
analogous
#7942C4 #BA42C4 #C4428D
triadic
#BA42C4 #C4BA42 #42C4BA
tetradic
#BA42C4 #C47942 #4CC442 #428DC4
square
#BA42C4 #C47942 #4CC442 #428DC4
split-complementary
#BA42C4 #8DC442 #42C479
monochromatic
#65216A #913099 #BA42C4 #CB71D3 #DC9FE1

Accessibility & contrast

On white

4.50
#BA42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BA42C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42C4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42C4#FFFFFF#000000##000000
##BA42C41.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#266DC8
Deuteranopia (green-blind)
#5A7CC1
Tritanopia (blue-blind)
#BE567E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba42c4;
/* rgb */ color: rgb(186, 66, 196);
/* oklch */ color: oklch(59.6% 0.215 324.6);
Tailwind
colors: {
  custom: {
    50: '#d280d6',
    500: '#ba42c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba42c4;
$custom-light: #d280d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42c4",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 295.385,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59574,
    "c": 0.21475,
    "h": 324.6
  },
  "luminance": 0.18321
}

Semantic roles & 50–950 ramp

primary
#BA42C4
secondary
#99CE94
accent
#DC4C57
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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