#BA42CC#BA42CC

#BA42CC is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.222 H 322.2°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA42CC
RGBrgb(186, 66, 204)
HSLhsl(292, 58%, 53%)
HSVhsv(292, 68%, 80%)
CMYKcmyk(8.8%, 67.6%, 0%, 20%)
CIE-LABlab(50.33, 65.85, -48.67)
CIE-LCHlch(50.33, 81.89, 323.53°)
OKLaboklab(60.04% 0.175 -0.1358)
OKLCHoklch(60.04% 0.222 322.2)
XYZxyz(33.0959, 18.6970, 58.9807)
Luminance0.1870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42CC #54CC42
analogous
#7542CC #BA42CC #CC4299
triadic
#BA42CC #CCBA42 #42CCBA
tetradic
#BA42CC #CC7542 #54CC42 #4299CC
square
#BA42CC #CC7542 #54CC42 #4299CC
split-complementary
#BA42CC #99CC42 #42CC75
monochromatic
#691F74 #952CA4 #BA42CC #CC72D9 #DDA2E6

Accessibility & contrast

On white

4.43
#BA42CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#BA42CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42CC
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42CC#FFFFFF#000000##000000
##BA42CC1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#176FD0
Deuteranopia (green-blind)
#547CC9
Tritanopia (blue-blind)
#BC5A82
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba42cc;
/* rgb */ color: rgb(186, 66, 204);
/* oklch */ color: oklch(60.0% 0.222 322.2);
Tailwind
colors: {
  custom: {
    50: '#d280dc',
    500: '#ba42cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba42cc;
$custom-light: #d280dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42cc",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 292.174,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60038,
    "c": 0.22151,
    "h": 322.2
  },
  "luminance": 0.18695
}

Semantic roles & 50–950 ramp

primary
#BA42CC
secondary
#9FD397
accent
#E1475B
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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