#BA45E5#BA45E5

#BA45E5 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.240 H 315.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA45E5
RGBrgb(186, 69, 229)
HSLhsl(284, 75%, 58%)
HSVhsv(284, 70%, 90%)
CMYKcmyk(18.8%, 69.9%, 0%, 10.2%)
CIE-LABlab(52.23, 69.38, -59.86)
CIE-LCHlch(52.23, 91.63, 319.21°)
OKLaboklab(61.88% 0.1705 -0.1685)
OKLCHoklch(61.88% 0.24 315.3)
XYZxyz(36.5184, 20.3538, 76.1186)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45E5 #70E545
analogous
#6A45E5 #BA45E5 #E545C0
triadic
#BA45E5 #E5BA45 #45E5BA
tetradic
#BA45E5 #E56A45 #70E545 #45C0E5
square
#BA45E5 #E56A45 #70E545 #45C0E5
split-complementary
#BA45E5 #C0E545 #45E56A
monochromatic
#76169A #A01DD0 #BA45E5 #CE7BED #E2B0F4

Accessibility & contrast

On white

4.14
#BA45E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BA45E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45E5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45E5#FFFFFF#000000##000000
##BA45E51.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#4180E1
Tritanopia (blue-blind)
#B76691
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba45e5;
/* rgb */ color: rgb(186, 69, 229);
/* oklch */ color: oklch(61.9% 0.240 315.3);
Tailwind
colors: {
  custom: {
    50: '#d382ee',
    500: '#ba45e5',
    950: '#000000',
  },
}
SCSS
$custom: #ba45e5;
$custom-light: #d382ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45e5",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 229
  },
  "hsl": {
    "h": 283.875,
    "s": 75.472,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61878,
    "c": 0.23976,
    "h": 315.3
  },
  "luminance": 0.20352
}

Semantic roles & 50–950 ramp

primary
#BA45E5
secondary
#B4E3A3
accent
#F23668
background
#FDF8FE
surface
#FBF0FD
border
#D4CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA45E5

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

Preview Lab → · Contrast checker → · Palette generator →

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