#BA45E1#BA45E1

#BA45E1 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.6% C 0.236 H 316.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA45E1
RGBrgb(186, 69, 225)
HSLhsl(285, 72%, 58%)
HSVhsv(285, 69%, 88%)
CMYKcmyk(17.3%, 69.3%, 0%, 11.8%)
CIE-LABlab(51.99, 68.60, -57.99)
CIE-LCHlch(51.99, 89.83, 319.79°)
OKLaboklab(61.62% 0.1709 -0.1631)
OKLCHoklch(61.62% 0.236 316.3)
XYZxyz(35.9663, 20.1330, 73.2111)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45E1 #6CE145
analogous
#6C45E1 #BA45E1 #E145BA
triadic
#BA45E1 #E1BA45 #45E1BA
tetradic
#BA45E1 #E16C45 #6CE145 #45BAE1
square
#BA45E1 #E16C45 #6CE145 #45BAE1
split-complementary
#BA45E1 #BAE145 #45E16C
monochromatic
#751894 #9E20C8 #BA45E1 #CE7AE9 #E1AEF2

Accessibility & contrast

On white

4.18
#BA45E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA45E1#FFFFFF#000000##000000
##BA45E11.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E5
Deuteranopia (green-blind)
#457FDD
Tritanopia (blue-blind)
#B8648E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba45e1;
/* rgb */ color: rgb(186, 69, 225);
/* oklch */ color: oklch(61.6% 0.236 316.3);
Tailwind
colors: {
  custom: {
    50: '#d382eb',
    500: '#ba45e1',
    950: '#000000',
  },
}
SCSS
$custom: #ba45e1;
$custom-light: #d382eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45e1",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 285,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61623,
    "c": 0.23621,
    "h": 316.3
  },
  "luminance": 0.20132
}

Semantic roles & 50–950 ramp

primary
#BA45E1
secondary
#B1E0A2
accent
#EF3966
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA45E1

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

Preview Lab → · Contrast checker → · Palette generator →

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