#BA42C7#BA42C7

#BA42C7 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.7% C 0.217 H 323.7°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA42C7
RGBrgb(186, 66, 199)
HSLhsl(294, 54%, 52%)
HSVhsv(294, 67%, 78%)
CMYKcmyk(6.5%, 66.8%, 0%, 22%)
CIE-LABlab(50.05, 64.96, -46.24)
CIE-LCHlch(50.05, 79.73, 324.56°)
OKLaboklab(59.75% 0.1751 -0.1287)
OKLCHoklch(59.75% 0.217 323.7)
XYZxyz(32.5058, 18.4609, 55.8729)
Luminance0.1846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42C7 #4FC742
analogous
#7742C7 #BA42C7 #C74292
triadic
#BA42C7 #C7BA42 #42C7BA
tetradic
#BA42C7 #C77742 #4FC742 #4292C7
square
#BA42C7 #C77742 #4FC742 #4292C7
split-complementary
#BA42C7 #92C742 #42C777
monochromatic
#66216E #922F9D #BA42C7 #CB71D5 #DCA0E3

Accessibility & contrast

On white

4.48
#BA42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#BA42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42C7
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42C7#FFFFFF#000000##000000
##BA42C71.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#216ECB
Deuteranopia (green-blind)
#587CC4
Tritanopia (blue-blind)
#BD587F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba42c7;
/* rgb */ color: rgb(186, 66, 199);
/* oklch */ color: oklch(59.7% 0.217 323.7);
Tailwind
colors: {
  custom: {
    50: '#d280d8',
    500: '#ba42c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba42c7;
$custom-light: #d280d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42c7",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 294.135,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59746,
    "c": 0.21727,
    "h": 323.7
  },
  "luminance": 0.18459
}

Semantic roles & 50–950 ramp

primary
#BA42C7
secondary
#9BD095
accent
#DE4A59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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