#BA40DF#BA40DF

#BA40DF is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 61.0% C 0.240 H 317.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA40DF
RGBrgb(186, 64, 223)
HSLhsl(286, 71%, 56%)
HSVhsv(286, 71%, 87%)
CMYKcmyk(16.6%, 71.3%, 0%, 12.5%)
CIE-LABlab(51.19, 70.12, -58.14)
CIE-LCHlch(51.19, 91.09, 320.34°)
OKLaboklab(61.02% 0.176 -0.1635)
OKLCHoklch(61.02% 0.24 317.1)
XYZxyz(35.4004, 19.4351, 71.6844)
Luminance0.1943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40DF #65DF40
analogous
#6B40DF #BA40DF #DF40B4
triadic
#BA40DF #DFBA40 #40DFBA
tetradic
#BA40DF #DF6B40 #65DF40 #40B4DF
square
#BA40DF #DF6B40 #65DF40 #40B4DF
split-complementary
#BA40DF #B4DF40 #40DF6B
monochromatic
#72188D #9C20C1 #BA40DF #CD74E8 #E0A9F1

Accessibility & contrast

On white

4.30
#BA40DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#BA40DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40DF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40DF#FFFFFF#000000##000000
##BA40DF1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#437EDB
Tritanopia (blue-blind)
#B8608C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba40df;
/* rgb */ color: rgb(186, 64, 223);
/* oklch */ color: oklch(61.0% 0.240 317.1);
Tailwind
colors: {
  custom: {
    50: '#d380ea',
    500: '#ba40df',
    950: '#000000',
  },
}
SCSS
$custom: #ba40df;
$custom-light: #d380ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40df",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 286.038,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.61016,
    "c": 0.24015,
    "h": 317.1
  },
  "luminance": 0.19434
}

Semantic roles & 50–950 ramp

primary
#BA40DF
secondary
#ACDE9D
accent
#EE3A64
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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