#BA38B9#BA38B9

#BA38B9 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.218 H 328.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BA38B9
RGBrgb(186, 56, 185)
HSLhsl(300, 54%, 47%)
HSVhsv(300, 70%, 73%)
CMYKcmyk(0%, 69.9%, 0.5%, 27.1%)
CIE-LABlab(47.97, 66.27, -41.41)
CIE-LCHlch(47.97, 78.15, 328.00°)
OKLaboklab(58.01% 0.1853 -0.1146)
OKLCHoklch(58.01% 0.218 328.3)
XYZxyz(30.4205, 16.7724, 47.5247)
Luminance0.1677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B9 #38BA39
analogous
#7A38BA #BA38B9 #BA3878
triadic
#BA38B9 #B9BA38 #38B9BA
tetradic
#BA38B9 #BA7A38 #38BA39 #3878BA
square
#BA38B9 #BA7A38 #38BA39 #3878BA
split-complementary
#BA38B9 #78BA38 #38BA7A
monochromatic
#5C1C5B #8B2A8A #BA38B9 #CF60CE #DD8FDD

Accessibility & contrast

On white

4.82
#BA38B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BA38B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38B9
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B9#FFFFFF#000000##FFFFFF
##BA38B91.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2367BD
Deuteranopia (green-blind)
#5B78B6
Tritanopia (blue-blind)
#C04B75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba38b9;
/* rgb */ color: rgb(186, 56, 185);
/* oklch */ color: oklch(58.0% 0.218 328.3);
Tailwind
colors: {
  custom: {
    50: '#d27bce',
    500: '#ba38b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b9;
$custom-light: #d27bce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b9",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 300.462,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58006,
    "c": 0.21785,
    "h": 328.3
  },
  "luminance": 0.1677
}

Semantic roles & 50–950 ramp

primary
#BA38B9
secondary
#86C886
accent
#DD4C4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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