#BA2DD7#BA2DD7

#BA2DD7 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 59.0% C 0.252 H 319.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA2DD7
RGBrgb(186, 45, 215)
HSLhsl(290, 68%, 51%)
HSVhsv(290, 79%, 84%)
CMYKcmyk(13.5%, 79.1%, 0%, 15.7%)
CIE-LABlab(48.54, 74.83, -57.85)
CIE-LCHlch(48.54, 94.58, 322.29°)
OKLaboklab(58.98% 0.1929 -0.1625)
OKLCHoklch(58.98% 0.252 319.9)
XYZxyz(33.4523, 17.2239, 65.8393)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DD7 #4AD72D
analogous
#652DD7 #BA2DD7 #D72D9F
triadic
#BA2DD7 #D7BA2D #2DD7BA
tetradic
#BA2DD7 #D7652D #4AD72D #2D9FD7
square
#BA2DD7 #D7652D #4AD72D #2D9FD7
split-complementary
#BA2DD7 #9FD72D #2DD765
monochromatic
#641674 #9020A7 #BA2DD7 #CB60E1 #DC94EB

Accessibility & contrast

On white

4.73
#BA2DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA2DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DD7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DD7#FFFFFF#000000##FFFFFF
##BA2DD71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba2dd7;
/* rgb */ color: rgb(186, 45, 215);
/* oklch */ color: oklch(59.0% 0.252 319.9);
Tailwind
colors: {
  custom: {
    50: '#d377e4',
    500: '#ba2dd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2dd7;
$custom-light: #d377e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2dd7",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 215
  },
  "hsl": {
    "h": 289.765,
    "s": 68,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58977,
    "c": 0.25223,
    "h": 319.9
  },
  "luminance": 0.17222
}

Semantic roles & 50–950 ramp

primary
#BA2DD7
secondary
#97D68A
accent
#EB3D5B
background
#FDF7FE
surface
#FBEEFC
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA2DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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