#BA49DD#BA49DD

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

Color values

HEX#BA49DD
RGBrgb(186, 73, 221)
HSLhsl(286, 69%, 58%)
HSVhsv(286, 67%, 87%)
CMYKcmyk(15.8%, 67%, 0%, 13.3%)
CIE-LABlab(52.32, 66.23, -55.20)
CIE-LCHlch(52.32, 86.22, 320.19°)
OKLaboklab(61.78% 0.167 -0.1549)
OKLCHoklch(61.78% 0.228 317.2)
XYZxyz(35.6815, 20.4261, 70.4557)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA49DD #6CDD49
analogous
#7049DD #BA49DD #DD49B6
triadic
#BA49DD #DDBA49 #49DDBA
tetradic
#BA49DD #DD7049 #6CDD49 #49B6DD
square
#BA49DD #DD7049 #6CDD49 #49B6DD
split-complementary
#BA49DD #B6DD49 #49DD70
monochromatic
#751B91 #9E25C4 #BA49DD #CE7DE7 #E1B0F0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA49DD#FFFFFF#000000##000000
##BA49DD1.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)
#0076E1
Deuteranopia (green-blind)
#4C80DA
Tritanopia (blue-blind)
#B8658D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba49dd;
/* rgb */ color: rgb(186, 73, 221);
/* oklch */ color: oklch(61.8% 0.228 317.2);
Tailwind
colors: {
  custom: {
    50: '#d384e8',
    500: '#ba49dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba49dd;
$custom-light: #d384e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba49dd",
  "rgb": {
    "r": 186,
    "g": 73,
    "b": 221
  },
  "hsl": {
    "h": 285.811,
    "s": 68.519,
    "l": 57.647
  },
  "oklch": {
    "l": 0.6178,
    "c": 0.22779,
    "h": 317.2
  },
  "luminance": 0.20425
}

Semantic roles & 50–950 ramp

primary
#BA49DD
secondary
#B1DFA3
accent
#EB3C66
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA49DD

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

Preview Lab → · Contrast checker → · Palette generator →

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