#BA45E6#BA45E6

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

Color values

HEX#BA45E6
RGBrgb(186, 69, 230)
HSLhsl(284, 76%, 59%)
HSVhsv(284, 70%, 90%)
CMYKcmyk(19.1%, 70%, 0%, 9.8%)
CIE-LABlab(52.30, 69.57, -60.32)
CIE-LCHlch(52.30, 92.08, 319.07°)
OKLaboklab(61.94% 0.1705 -0.1699)
OKLCHoklch(61.94% 0.241 315.1)
XYZxyz(36.6584, 20.4098, 76.8560)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45E6 #71E645
analogous
#6945E6 #BA45E6 #E645C2
triadic
#BA45E6 #E6BA45 #45E6BA
tetradic
#BA45E6 #E66945 #71E645 #45C2E6
square
#BA45E6 #E66945 #71E645 #45C2E6
split-complementary
#BA45E6 #C2E645 #45E669
monochromatic
#77159C #A01CD2 #BA45E6 #CE7BED #E2B1F5

Accessibility & contrast

On white

4.13
#BA45E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#BA45E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45E6
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45E6#FFFFFF#000000##000000
##BA45E61.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EB
Deuteranopia (green-blind)
#4080E2
Tritanopia (blue-blind)
#B66691
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba45e6;
/* rgb */ color: rgb(186, 69, 230);
/* oklch */ color: oklch(61.9% 0.241 315.1);
Tailwind
colors: {
  custom: {
    50: '#d382ef',
    500: '#ba45e6',
    950: '#000000',
  },
}
SCSS
$custom: #ba45e6;
$custom-light: #d382ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45e6",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 283.602,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61943,
    "c": 0.24066,
    "h": 315.1
  },
  "luminance": 0.20409
}

Semantic roles & 50–950 ramp

primary
#BA45E6
secondary
#B5E3A4
accent
#F33569
background
#FDF8FE
surface
#FBF0FD
border
#D4CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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