#BA42C8#BA42C8

#BA42C8 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.8% C 0.218 H 323.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA42C8
RGBrgb(186, 66, 200)
HSLhsl(294, 55%, 52%)
HSVhsv(294, 67%, 78%)
CMYKcmyk(7%, 67%, 0%, 21.6%)
CIE-LABlab(50.11, 65.14, -46.73)
CIE-LCHlch(50.11, 80.16, 324.35°)
OKLaboklab(59.8% 0.1751 -0.1301)
OKLCHoklch(59.8% 0.218 323.4)
XYZxyz(32.6223, 18.5075, 56.4864)
Luminance0.1851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42C8 #50C842
analogous
#7742C8 #BA42C8 #C84293
triadic
#BA42C8 #C8BA42 #42C8BA
tetradic
#BA42C8 #C87742 #50C842 #4293C8
square
#BA42C8 #C87742 #50C842 #4293C8
split-complementary
#BA42C8 #93C842 #42C877
monochromatic
#67206F #932E9F #BA42C8 #CB71D6 #DDA1E4

Accessibility & contrast

On white

4.47
#BA42C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#BA42C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42C8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42C8#FFFFFF#000000##000000
##BA42C81.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F6ECC
Deuteranopia (green-blind)
#577CC5
Tritanopia (blue-blind)
#BD5880
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba42c8;
/* rgb */ color: rgb(186, 66, 200);
/* oklch */ color: oklch(59.8% 0.218 323.4);
Tailwind
colors: {
  custom: {
    50: '#d280d9',
    500: '#ba42c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba42c8;
$custom-light: #d280d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42c8",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 293.731,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59804,
    "c": 0.21812,
    "h": 323.4
  },
  "luminance": 0.18506
}

Semantic roles & 50–950 ramp

primary
#BA42C8
secondary
#9CD096
accent
#DE4A59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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