#BA42C0#BA42C0

#BA42C0 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.3% C 0.211 H 325.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA42C0
RGBrgb(186, 66, 192)
HSLhsl(297, 50%, 51%)
HSVhsv(297, 66%, 75%)
CMYKcmyk(3.1%, 65.6%, 0%, 24.7%)
CIE-LABlab(49.67, 63.73, -42.80)
CIE-LCHlch(49.67, 76.77, 326.12°)
OKLaboklab(59.35% 0.175 -0.1187)
OKLCHoklch(59.35% 0.211 325.9)
XYZxyz(31.7117, 18.1433, 51.6907)
Luminance0.1814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42C0 #48C042
analogous
#7B42C0 #BA42C0 #C04287
triadic
#BA42C0 #C0BA42 #42C0BA
tetradic
#BA42C0 #C07B42 #48C042 #4287C0
square
#BA42C0 #C07B42 #48C042 #4287C0
split-complementary
#BA42C0 #87C042 #42C07B
monochromatic
#622266 #8F3194 #BA42C0 #CB70CF #DC9EDF

Accessibility & contrast

On white

4.54
#BA42C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#BA42C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42C0
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42C0#FFFFFF#000000##000000
##BA42C01.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B6CC4
Deuteranopia (green-blind)
#5C7BBD
Tritanopia (blue-blind)
#BF557C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba42c0;
/* rgb */ color: rgb(186, 66, 192);
/* oklch */ color: oklch(59.3% 0.211 325.9);
Tailwind
colors: {
  custom: {
    50: '#d280d3',
    500: '#ba42c0',
    950: '#000000',
  },
}
SCSS
$custom: #ba42c0;
$custom-light: #d280d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42c0",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 297.143,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59349,
    "c": 0.21142,
    "h": 325.9
  },
  "luminance": 0.18141
}

Semantic roles & 50–950 ramp

primary
#BA42C0
secondary
#96CB93
accent
#DA4E55
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA42C0

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

Preview Lab → · Contrast checker → · Palette generator →

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