#BA4DCD#BA4DCD

#BA4DCD is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.3% C 0.208 H 321.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA4DCD
RGBrgb(186, 77, 205)
HSLhsl(291, 56%, 55%)
HSVhsv(291, 62%, 80%)
CMYKcmyk(9.3%, 62.4%, 0%, 19.6%)
CIE-LABlab(52.01, 61.50, -46.57)
CIE-LCHlch(52.01, 77.14, 322.87°)
OKLaboklab(61.27% 0.1628 -0.1297)
OKLCHoklch(61.27% 0.208 321.4)
XYZxyz(33.9218, 20.1563, 59.8495)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DCD #60CD4D
analogous
#7A4DCD #BA4DCD #CD4DA0
triadic
#BA4DCD #CDBA4D #4DCDBA
tetradic
#BA4DCD #CD7A4D #60CD4D #4DA0CD
square
#BA4DCD #CD7A4D #60CD4D #4DA0CD
split-complementary
#BA4DCD #A0CD4D #4DCD7A
monochromatic
#6F237D #9A30AC #BA4DCD #CD7DDA #DFADE8

Accessibility & contrast

On white

4.17
#BA4DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA4DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DCD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DCD#FFFFFF#000000##000000
##BA4DCD1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E74D1
Deuteranopia (green-blind)
#5B80CA
Tritanopia (blue-blind)
#BC6186
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4dcd;
/* rgb */ color: rgb(186, 77, 205);
/* oklch */ color: oklch(61.3% 0.208 321.4);
Tailwind
colors: {
  custom: {
    50: '#d286dd',
    500: '#ba4dcd',
    950: '#000000',
  },
}
SCSS
$custom: #ba4dcd;
$custom-light: #d286dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4dcd",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 291.094,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.6127,
    "c": 0.20812,
    "h": 321.4
  },
  "luminance": 0.20155
}

Semantic roles & 50–950 ramp

primary
#BA4DCD
secondary
#A8D6A0
accent
#DF485F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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