#BA42CB#BA42CB

#BA42CB is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.0% C 0.221 H 322.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA42CB
RGBrgb(186, 66, 203)
HSLhsl(293, 57%, 53%)
HSVhsv(293, 67%, 80%)
CMYKcmyk(8.4%, 67.5%, 0%, 20.4%)
CIE-LABlab(50.27, 65.67, -48.19)
CIE-LCHlch(50.27, 81.45, 323.73°)
OKLaboklab(59.98% 0.175 -0.1344)
OKLCHoklch(59.98% 0.221 322.5)
XYZxyz(32.9763, 18.6492, 58.3510)
Luminance0.1865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42CB #53CB42
analogous
#7642CB #BA42CB #CB4297
triadic
#BA42CB #CBBA42 #42CBBA
tetradic
#BA42CB #CB7642 #53CB42 #4297CB
square
#BA42CB #CB7642 #53CB42 #4297CB
split-complementary
#BA42CB #97CB42 #42CB76
monochromatic
#692073 #942DA3 #BA42CB #CC72D8 #DDA2E5

Accessibility & contrast

On white

4.44
#BA42CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BA42CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42CB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42CB#FFFFFF#000000##000000
##BA42CB1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#196FCF
Deuteranopia (green-blind)
#557CC8
Tritanopia (blue-blind)
#BC5982
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba42cb;
/* rgb */ color: rgb(186, 66, 203);
/* oklch */ color: oklch(60.0% 0.221 322.5);
Tailwind
colors: {
  custom: {
    50: '#d280db',
    500: '#ba42cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba42cb;
$custom-light: #d280db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42cb",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 292.555,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59979,
    "c": 0.22065,
    "h": 322.5
  },
  "luminance": 0.18647
}

Semantic roles & 50–950 ramp

primary
#BA42CB
secondary
#9ED297
accent
#E0485B
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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