#BA4DD7#BA4DD7

#BA4DD7 is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.9% C 0.217 H 318.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BA4DD7
RGBrgb(186, 77, 215)
HSLhsl(287, 63%, 57%)
HSVhsv(287, 64%, 84%)
CMYKcmyk(13.5%, 64.2%, 0%, 15.7%)
CIE-LABlab(52.57, 63.40, -51.39)
CIE-LCHlch(52.57, 81.61, 320.97°)
OKLaboklab(61.85% 0.1628 -0.1438)
OKLCHoklch(61.85% 0.217 318.6)
XYZxyz(35.1677, 20.6547, 66.4111)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DD7 #6AD74D
analogous
#754DD7 #BA4DD7 #D74DAF
triadic
#BA4DD7 #D7BA4D #4DD7BA
tetradic
#BA4DD7 #D7754D #6AD74D #4DAFD7
square
#BA4DD7 #D7754D #6AD74D #4DAFD7
split-complementary
#BA4DD7 #AFD74D #4DD775
monochromatic
#741F8A #9E2ABC #BA4DD7 #CD7FE2 #E1B1ED

Accessibility & contrast

On white

4.09
#BA4DD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#BA4DD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DD7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DD7#FFFFFF#000000##000000
##BA4DD71.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F76DB
Deuteranopia (green-blind)
#5481D4
Tritanopia (blue-blind)
#BA658B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4dd7;
/* rgb */ color: rgb(186, 77, 215);
/* oklch */ color: oklch(61.9% 0.217 318.6);
Tailwind
colors: {
  custom: {
    50: '#d286e4',
    500: '#ba4dd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4dd7;
$custom-light: #d286e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4dd7",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 215
  },
  "hsl": {
    "h": 287.391,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61851,
    "c": 0.2172,
    "h": 318.6
  },
  "luminance": 0.20653
}

Semantic roles & 50–950 ramp

primary
#BA4DD7
secondary
#B0DCA4
accent
#E64164
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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