#BA38B8#BA38B8

#BA38B8 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.217 H 328.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA38B8
RGBrgb(186, 56, 184)
HSLhsl(301, 54%, 47%)
HSVhsv(301, 70%, 73%)
CMYKcmyk(0%, 69.9%, 1.1%, 27.1%)
CIE-LABlab(47.92, 66.11, -40.91)
CIE-LCHlch(47.92, 77.75, 328.25°)
OKLaboklab(57.95% 0.1853 -0.1131)
OKLCHoklch(57.95% 0.217 328.6)
XYZxyz(30.3153, 16.7303, 46.9707)
Luminance0.1673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B8 #38BA3A
analogous
#7B38BA #BA38B8 #BA3877
triadic
#BA38B8 #B8BA38 #38B8BA
tetradic
#BA38B8 #BA7B38 #38BA3A #3877BA
square
#BA38B8 #BA7B38 #38BA3A #3877BA
split-complementary
#BA38B8 #77BA38 #38BA7B
monochromatic
#5C1C5B #8B2A89 #BA38B8 #CF60CD #DD8FDC

Accessibility & contrast

On white

4.83
#BA38B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA38B8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B8#FFFFFF#000000##FFFFFF
##BA38B81.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2567BC
Deuteranopia (green-blind)
#5B78B5
Tritanopia (blue-blind)
#C04A74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba38b8;
/* rgb */ color: rgb(186, 56, 184);
/* oklch */ color: oklch(58.0% 0.217 328.6);
Tailwind
colors: {
  custom: {
    50: '#d27bce',
    500: '#ba38b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b8;
$custom-light: #d27bce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b8",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 300.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5795,
    "c": 0.21708,
    "h": 328.6
  },
  "luminance": 0.16728
}

Semantic roles & 50–950 ramp

primary
#BA38B8
secondary
#86C887
accent
#DD4D4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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