#BA38B4#BA38B4

#BA38B4 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.214 H 329.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA38B4
RGBrgb(186, 56, 180)
HSLhsl(303, 54%, 47%)
HSVhsv(303, 70%, 73%)
CMYKcmyk(0%, 69.9%, 3.2%, 27.1%)
CIE-LABlab(47.71, 65.46, -38.91)
CIE-LCHlch(47.71, 76.15, 329.27°)
OKLaboklab(57.73% 0.1851 -0.1073)
OKLCHoklch(57.73% 0.214 329.9)
XYZxyz(29.9019, 16.5650, 44.7936)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B4 #38BA3E
analogous
#7F38BA #BA38B4 #BA3873
triadic
#BA38B4 #B4BA38 #38B4BA
tetradic
#BA38B4 #BA7F38 #38BA3E #3873BA
square
#BA38B4 #BA7F38 #38BA3E #3873BA
split-complementary
#BA38B4 #73BA38 #38BA7F
monochromatic
#5C1C59 #8B2A86 #BA38B4 #CF60CA #DD8FDA

Accessibility & contrast

On white

4.87
#BA38B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BA38B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38B4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B4#FFFFFF#000000##FFFFFF
##BA38B41.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B7
Deuteranopia (green-blind)
#5D77B1
Tritanopia (blue-blind)
#C14872
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba38b4;
/* rgb */ color: rgb(186, 56, 180);
/* oklch */ color: oklch(57.7% 0.214 329.9);
Tailwind
colors: {
  custom: {
    50: '#d27acb',
    500: '#ba38b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b4;
$custom-light: #d27acb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b4",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 302.769,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5773,
    "c": 0.214,
    "h": 329.9
  },
  "luminance": 0.16563
}

Semantic roles & 50–950 ramp

primary
#BA38B4
secondary
#86C889
accent
#DD514B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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