#BA45DF#BA45DF

#BA45DF is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.5% C 0.234 H 316.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA45DF
RGBrgb(186, 69, 223)
HSLhsl(286, 71%, 57%)
HSVhsv(286, 69%, 87%)
CMYKcmyk(16.6%, 69.1%, 0%, 12.5%)
CIE-LABlab(51.86, 68.22, -57.06)
CIE-LCHlch(51.86, 88.93, 320.09°)
OKLaboklab(61.5% 0.171 -0.1603)
OKLCHoklch(61.5% 0.234 316.9)
XYZxyz(35.6951, 20.0245, 71.7826)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45DF #6ADF45
analogous
#6D45DF #BA45DF #DF45B7
triadic
#BA45DF #DFBA45 #45DFBA
tetradic
#BA45DF #DF6D45 #6ADF45 #45B7DF
square
#BA45DF #DF6D45 #6ADF45 #45B7DF
split-complementary
#BA45DF #B7DF45 #45DF6D
monochromatic
#741991 #9E22C5 #BA45DF #CD79E8 #E1ADF1

Accessibility & contrast

On white

4.20
#BA45DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BA45DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45DF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45DF#FFFFFF#000000##000000
##BA45DF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#477FDB
Tritanopia (blue-blind)
#B8638D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba45df;
/* rgb */ color: rgb(186, 69, 223);
/* oklch */ color: oklch(61.5% 0.234 316.9);
Tailwind
colors: {
  custom: {
    50: '#d382ea',
    500: '#ba45df',
    950: '#000000',
  },
}
SCSS
$custom: #ba45df;
$custom-light: #d382ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45df",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 285.584,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61496,
    "c": 0.23443,
    "h": 316.9
  },
  "luminance": 0.20023
}

Semantic roles & 50–950 ramp

primary
#BA45DF
secondary
#B0DFA1
accent
#ED3A65
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA45DF

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

Preview Lab → · Contrast checker → · Palette generator →

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