#BA4FD1#BA4FD1

#BA4FD1 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.7% C 0.209 H 320.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BA4FD1
RGBrgb(186, 79, 209)
HSLhsl(289, 59%, 56%)
HSVhsv(289, 62%, 82%)
CMYKcmyk(11%, 62.2%, 0%, 18%)
CIE-LABlab(52.55, 61.38, -48.00)
CIE-LCHlch(52.55, 77.92, 321.97°)
OKLaboklab(61.73% 0.1605 -0.1339)
OKLCHoklch(61.73% 0.209 320.2)
XYZxyz(34.5529, 20.6361, 62.4724)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FD1 #66D14F
analogous
#794FD1 #BA4FD1 #D14FA7
triadic
#BA4FD1 #D1BA4F #4FD1BA
tetradic
#BA4FD1 #D1794F #66D14F #4FA7D1
square
#BA4FD1 #D1794F #66D14F #4FA7D1
split-complementary
#BA4FD1 #A7D14F #4FD179
monochromatic
#722283 #9C2FB4 #BA4FD1 #CD80DE #E0B0EA

Accessibility & contrast

On white

4.10
#BA4FD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4FD1#FFFFFF#000000##000000
##BA4FD11.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D76D5
Deuteranopia (green-blind)
#5A81CE
Tritanopia (blue-blind)
#BB6489
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4fd1;
/* rgb */ color: rgb(186, 79, 209);
/* oklch */ color: oklch(61.7% 0.209 320.2);
Tailwind
colors: {
  custom: {
    50: '#d287e0',
    500: '#ba4fd1',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fd1;
$custom-light: #d287e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fd1",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 209
  },
  "hsl": {
    "h": 289.385,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61728,
    "c": 0.20901,
    "h": 320.2
  },
  "luminance": 0.20635
}

Semantic roles & 50–950 ramp

primary
#BA4FD1
secondary
#ADD9A3
accent
#E24662
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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