#BA4BD8#BA4BD8

#BA4BD8 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.7% C 0.221 H 318.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA4BD8
RGBrgb(186, 75, 216)
HSLhsl(287, 64%, 57%)
HSVhsv(287, 65%, 85%)
CMYKcmyk(13.9%, 65.3%, 0%, 15.3%)
CIE-LABlab(52.32, 64.44, -52.35)
CIE-LCHlch(52.32, 83.03, 320.91°)
OKLaboklab(61.69% 0.165 -0.1466)
OKLCHoklch(61.69% 0.221 318.4)
XYZxyz(35.1588, 20.4307, 67.0440)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BD8 #69D84B
analogous
#744BD8 #BA4BD8 #D84BB0
triadic
#BA4BD8 #D8BA4B #4BD8BA
tetradic
#BA4BD8 #D8744B #69D84B #4BB0D8
square
#BA4BD8 #D8744B #69D84B #4BB0D8
split-complementary
#BA4BD8 #B0D84B #4BD874
monochromatic
#731E8B #9D29BD #BA4BD8 #CD7DE3 #E1B0EE

Accessibility & contrast

On white

4.13
#BA4BD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#BA4BD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BD8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BD8#FFFFFF#000000##000000
##BA4BD81.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1676DC
Deuteranopia (green-blind)
#5280D5
Tritanopia (blue-blind)
#BA648B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4bd8;
/* rgb */ color: rgb(186, 75, 216);
/* oklch */ color: oklch(61.7% 0.221 318.4);
Tailwind
colors: {
  custom: {
    50: '#d285e5',
    500: '#ba4bd8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bd8;
$custom-light: #d285e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bd8",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 287.234,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.6169,
    "c": 0.22073,
    "h": 318.4
  },
  "luminance": 0.20429
}

Semantic roles & 50–950 ramp

primary
#BA4BD8
secondary
#AFDCA3
accent
#E74064
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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