#BA4BDB#BA4BDB

#BA4BDB is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.9% C 0.223 H 317.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA4BDB
RGBrgb(186, 75, 219)
HSLhsl(286, 67%, 58%)
HSVhsv(286, 66%, 86%)
CMYKcmyk(15.1%, 65.8%, 0%, 14.1%)
CIE-LABlab(52.49, 65.01, -53.78)
CIE-LCHlch(52.49, 84.38, 320.40°)
OKLaboklab(61.87% 0.1649 -0.1508)
OKLCHoklch(61.87% 0.223 317.6)
XYZxyz(35.5501, 20.5872, 69.1052)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BDB #6CDB4B
analogous
#724BDB #BA4BDB #DB4BB4
triadic
#BA4BDB #DBBA4B #4BDBBA
tetradic
#BA4BDB #DB724B #6CDB4B #4BB4DB
square
#BA4BDB #DB724B #6CDB4B #4BB4DB
split-complementary
#BA4BDB #B4DB4B #4BDB72
monochromatic
#751D8F #9E27C2 #BA4BDB #CE7EE5 #E1B1EF

Accessibility & contrast

On white

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

On black

5.12
#BA4BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BDB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BDB#FFFFFF#000000##000000
##BA4BDB1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C76DF
Deuteranopia (green-blind)
#5081D8
Tritanopia (blue-blind)
#B9668D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4bdb;
/* rgb */ color: rgb(186, 75, 219);
/* oklch */ color: oklch(61.9% 0.223 317.6);
Tailwind
colors: {
  custom: {
    50: '#d285e7',
    500: '#ba4bdb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bdb;
$custom-light: #d285e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bdb",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 219
  },
  "hsl": {
    "h": 286.25,
    "s": 66.667,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61871,
    "c": 0.22346,
    "h": 317.6
  },
  "luminance": 0.20586
}

Semantic roles & 50–950 ramp

primary
#BA4BDB
secondary
#B1DEA4
accent
#EA3E65
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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