#BA45D9#BA45D9

#BA45D9 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.229 H 318.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA45D9
RGBrgb(186, 69, 217)
HSLhsl(287, 66%, 56%)
HSVhsv(287, 68%, 85%)
CMYKcmyk(14.3%, 68.2%, 0%, 14.9%)
CIE-LABlab(51.50, 67.08, -54.23)
CIE-LCHlch(51.50, 86.26, 321.05°)
OKLaboklab(61.12% 0.1714 -0.152)
OKLCHoklch(61.12% 0.229 318.4)
XYZxyz(34.9005, 19.7067, 67.5976)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45D9 #64D945
analogous
#7045D9 #BA45D9 #D945AE
triadic
#BA45D9 #D9BA45 #45D9BA
tetradic
#BA45D9 #D97045 #64D945 #45AED9
square
#BA45D9 #D97045 #64D945 #45AED9
split-complementary
#BA45D9 #AED945 #45D970
monochromatic
#711C88 #9C26BB #BA45D9 #CD78E3 #E0ABEE

Accessibility & contrast

On white

4.25
#BA45D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#BA45D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45D9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45D9#FFFFFF#000000##000000
##BA45D91.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#4D7FD6
Tritanopia (blue-blind)
#B9618A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba45d9;
/* rgb */ color: rgb(186, 69, 217);
/* oklch */ color: oklch(61.1% 0.229 318.4);
Tailwind
colors: {
  custom: {
    50: '#d382e5',
    500: '#ba45d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba45d9;
$custom-light: #d382e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45d9",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 287.432,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61122,
    "c": 0.22912,
    "h": 318.4
  },
  "luminance": 0.19705
}

Semantic roles & 50–950 ramp

primary
#BA45D9
secondary
#ABDB9E
accent
#E93F62
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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