#BA2CD7#BA2CD7

#BA2CD7 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.9% C 0.253 H 319.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA2CD7
RGBrgb(186, 44, 215)
HSLhsl(290, 68%, 51%)
HSVhsv(290, 80%, 84%)
CMYKcmyk(13.5%, 79.5%, 0%, 15.7%)
CIE-LABlab(48.45, 75.10, -58.00)
CIE-LCHlch(48.45, 94.89, 322.32°)
OKLaboklab(58.91% 0.1936 -0.1629)
OKLCHoklch(58.91% 0.253 319.9)
XYZxyz(33.4146, 17.1485, 65.8267)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CD7 #49D72C
analogous
#652CD7 #BA2CD7 #D72C9E
triadic
#BA2CD7 #D7BA2C #2CD7BA
tetradic
#BA2CD7 #D7652C #49D72C #2C9ED7
square
#BA2CD7 #D7652C #49D72C #2C9ED7
split-complementary
#BA2CD7 #9ED72C #2CD765
monochromatic
#631673 #8F20A6 #BA2CD7 #CB5FE1 #DC93EB

Accessibility & contrast

On white

4.74
#BA2CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA2CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CD7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CD7#FFFFFF#000000##FFFFFF
##BA2CD71.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#3D78D3
Tritanopia (blue-blind)
#BA5283
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba2cd7;
/* rgb */ color: rgb(186, 44, 215);
/* oklch */ color: oklch(58.9% 0.253 319.9);
Tailwind
colors: {
  custom: {
    50: '#d377e4',
    500: '#ba2cd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cd7;
$custom-light: #d377e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cd7",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 215
  },
  "hsl": {
    "h": 289.825,
    "s": 68.127,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58911,
    "c": 0.25306,
    "h": 319.9
  },
  "luminance": 0.17147
}

Semantic roles & 50–950 ramp

primary
#BA2CD7
secondary
#96D589
accent
#EB3D5A
background
#FDF7FE
surface
#FBEEFC
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA2CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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