#BA40CD#BA40CD

#BA40CD is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.9% C 0.225 H 322.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA40CD
RGBrgb(186, 64, 205)
HSLhsl(292, 59%, 53%)
HSVhsv(292, 69%, 80%)
CMYKcmyk(9.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(50.12, 66.80, -49.59)
CIE-LCHlch(50.12, 83.20, 323.41°)
OKLaboklab(59.9% 0.1771 -0.1384)
OKLCHoklch(59.9% 0.225 322)
XYZxyz(33.1014, 18.5155, 59.5761)
Luminance0.1851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40CD #53CD40
analogous
#7440CD #BA40CD #CD4099
triadic
#BA40CD #CDBA40 #40CDBA
tetradic
#BA40CD #CD7440 #53CD40 #4099CD
square
#BA40CD #CD7440 #53CD40 #4099CD
split-complementary
#BA40CD #99CD40 #40CD74
monochromatic
#691E74 #942BA5 #BA40CD #CC71DA #DDA1E6

Accessibility & contrast

On white

4.47
#BA40CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#BA40CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40CD
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40CD#FFFFFF#000000##000000
##BA40CD1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C6ED1
Deuteranopia (green-blind)
#527CCA
Tritanopia (blue-blind)
#BC5982
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba40cd;
/* rgb */ color: rgb(186, 64, 205);
/* oklch */ color: oklch(59.9% 0.225 322.0);
Tailwind
colors: {
  custom: {
    50: '#d27fdd',
    500: '#ba40cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba40cd;
$custom-light: #d27fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40cd",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 291.915,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59902,
    "c": 0.22477,
    "h": 322
  },
  "luminance": 0.18514
}

Semantic roles & 50–950 ramp

primary
#BA40CD
secondary
#9ED396
accent
#E2465B
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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