#BA4CDB#BA4CDB

#BA4CDB is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 62.0% C 0.222 H 317.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA4CDB
RGBrgb(186, 76, 219)
HSLhsl(286, 67%, 58%)
HSVhsv(286, 65%, 86%)
CMYKcmyk(15.1%, 65.3%, 0%, 14.1%)
CIE-LABlab(52.65, 64.59, -53.54)
CIE-LCHlch(52.65, 83.90, 320.35°)
OKLaboklab(61.98% 0.1638 -0.1501)
OKLCHoklch(61.98% 0.222 317.5)
XYZxyz(35.6185, 20.7239, 69.1280)
Luminance0.2072 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CDB #6DDB4C
analogous
#724CDB #BA4CDB #DB4CB4
triadic
#BA4CDB #DBBA4C #4CDBBA
tetradic
#BA4CDB #DB724C #6DDB4C #4CB4DB
square
#BA4CDB #DB724C #6DDB4C #4CB4DB
split-complementary
#BA4CDB #B4DB4C #4CDB72
monochromatic
#751D90 #9F27C3 #BA4CDB #CE7FE5 #E1B2EF

Accessibility & contrast

On white

4.08
#BA4CDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#BA4CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CDB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CDB#FFFFFF#000000##000000
##BA4CDB1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1177DF
Deuteranopia (green-blind)
#5081D8
Tritanopia (blue-blind)
#B9668D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4cdb;
/* rgb */ color: rgb(186, 76, 219);
/* oklch */ color: oklch(62.0% 0.222 317.5);
Tailwind
colors: {
  custom: {
    50: '#d286e7',
    500: '#ba4cdb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cdb;
$custom-light: #d286e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cdb",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 286.154,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.6198,
    "c": 0.22217,
    "h": 317.5
  },
  "luminance": 0.20722
}

Semantic roles & 50–950 ramp

primary
#BA4CDB
secondary
#B2DEA5
accent
#E93E66
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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