#BA4FD5#BA4FD5

#BA4FD5 is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 62.0% C 0.213 H 319.0°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA4FD5
RGBrgb(186, 79, 213)
HSLhsl(288, 61%, 57%)
HSVhsv(288, 63%, 84%)
CMYKcmyk(12.7%, 62.9%, 0%, 16.5%)
CIE-LABlab(52.77, 62.14, -49.93)
CIE-LCHlch(52.77, 79.72, 321.22°)
OKLaboklab(61.96% 0.1605 -0.1395)
OKLCHoklch(61.96% 0.213 319)
XYZxyz(35.0543, 20.8367, 65.1133)
Luminance0.2084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FD5 #6AD54F
analogous
#774FD5 #BA4FD5 #D54FAD
triadic
#BA4FD5 #D5BA4F #4FD5BA
tetradic
#BA4FD5 #D5774F #6AD54F #4FADD5
square
#BA4FD5 #D5774F #6AD54F #4FADD5
split-complementary
#BA4FD5 #ADD54F #4FD577
monochromatic
#742189 #9E2CBA #BA4FD5 #CD80E1 #E1B2ED

Accessibility & contrast

On white

4.06
#BA4FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#BA4FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FD5
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FD5#FFFFFF#000000##000000
##BA4FD51.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2877D9
Deuteranopia (green-blind)
#5782D2
Tritanopia (blue-blind)
#BA668B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4fd5;
/* rgb */ color: rgb(186, 79, 213);
/* oklch */ color: oklch(62.0% 0.213 319.0);
Tailwind
colors: {
  custom: {
    50: '#d287e2',
    500: '#ba4fd5',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fd5;
$custom-light: #d287e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fd5",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 287.91,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6196,
    "c": 0.21268,
    "h": 319
  },
  "luminance": 0.20835
}

Semantic roles & 50–950 ramp

primary
#BA4FD5
secondary
#B0DBA5
accent
#E54364
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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