#BA4BD7#BA4BD7

#BA4BD7 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.6% C 0.220 H 318.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA4BD7
RGBrgb(186, 75, 215)
HSLhsl(288, 64%, 57%)
HSVhsv(288, 65%, 84%)
CMYKcmyk(13.5%, 65.1%, 0%, 15.7%)
CIE-LABlab(52.26, 64.25, -51.88)
CIE-LCHlch(52.26, 82.58, 321.08°)
OKLaboklab(61.63% 0.165 -0.1452)
OKLCHoklch(61.63% 0.22 318.7)
XYZxyz(35.0299, 20.3791, 66.3652)
Luminance0.2038 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BD7 #68D74B
analogous
#744BD7 #BA4BD7 #D74BAE
triadic
#BA4BD7 #D7BA4B #4BD7BA
tetradic
#BA4BD7 #D7744B #68D74B #4BAED7
square
#BA4BD7 #D7744B #68D74B #4BAED7
split-complementary
#BA4BD7 #AED74B #4BD774
monochromatic
#731E89 #9D2ABB #BA4BD7 #CD7DE2 #E0AFED

Accessibility & contrast

On white

4.14
#BA4BD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#BA4BD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BD7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BD7#FFFFFF#000000##000000
##BA4BD71.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1975DB
Deuteranopia (green-blind)
#5380D4
Tritanopia (blue-blind)
#BA648B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4bd7;
/* rgb */ color: rgb(186, 75, 215);
/* oklch */ color: oklch(61.6% 0.220 318.7);
Tailwind
colors: {
  custom: {
    50: '#d285e4',
    500: '#ba4bd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bd7;
$custom-light: #d285e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bd7",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 287.571,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.6163,
    "c": 0.21982,
    "h": 318.7
  },
  "luminance": 0.20378
}

Semantic roles & 50–950 ramp

primary
#BA4BD7
secondary
#AEDBA2
accent
#E74163
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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