#BA4BD4#BA4BD4

#BA4BD4 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.5% C 0.217 H 319.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA4BD4
RGBrgb(186, 75, 212)
HSLhsl(289, 61%, 56%)
HSVhsv(289, 65%, 83%)
CMYKcmyk(12.3%, 64.6%, 0%, 16.9%)
CIE-LABlab(52.09, 63.68, -50.44)
CIE-LCHlch(52.09, 81.23, 321.62°)
OKLaboklab(61.45% 0.1651 -0.141)
OKLCHoklch(61.45% 0.217 319.5)
XYZxyz(34.6479, 20.2263, 64.3536)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BD4 #65D44B
analogous
#764BD4 #BA4BD4 #D44BAA
triadic
#BA4BD4 #D4BA4B #4BD4BA
tetradic
#BA4BD4 #D4764B #65D44B #4BAAD4
square
#BA4BD4 #D4764B #65D44B #4BAAD4
split-complementary
#BA4BD4 #AAD44B #4BD476
monochromatic
#722085 #9C2CB6 #BA4BD4 #CD7CE0 #E0AEEC

Accessibility & contrast

On white

4.16
#BA4BD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BA4BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BD4
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BD4#FFFFFF#000000##000000
##BA4BD41.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F75D8
Deuteranopia (green-blind)
#5580D1
Tritanopia (blue-blind)
#BA6389
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4bd4;
/* rgb */ color: rgb(186, 75, 212);
/* oklch */ color: oklch(61.5% 0.217 319.5);
Tailwind
colors: {
  custom: {
    50: '#d285e2',
    500: '#ba4bd4',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bd4;
$custom-light: #d285e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bd4",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 288.613,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61452,
    "c": 0.21711,
    "h": 319.5
  },
  "luminance": 0.20225
}

Semantic roles & 50–950 ramp

primary
#BA4BD4
secondary
#ACDAA1
accent
#E54362
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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