#BA38AB#BA38AB

#BA38AB is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.207 H 333.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA38AB
RGBrgb(186, 56, 171)
HSLhsl(307, 54%, 47%)
HSVhsv(307, 70%, 73%)
CMYKcmyk(0%, 69.9%, 8.1%, 27.1%)
CIE-LABlab(47.25, 64.04, -34.33)
CIE-LCHlch(47.25, 72.66, 331.80°)
OKLaboklab(57.25% 0.1846 -0.0941)
OKLCHoklch(57.25% 0.207 333)
XYZxyz(29.0147, 16.2101, 40.1209)
Luminance0.1621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38AB #38BA47
analogous
#8838BA #BA38AB #BA386A
triadic
#BA38AB #ABBA38 #38ABBA
tetradic
#BA38AB #BA8838 #38BA47 #386ABA
square
#BA38AB #BA8838 #38BA47 #386ABA
split-complementary
#BA38AB #6ABA38 #38BA88
monochromatic
#5C1C55 #8B2A80 #BA38AB #CF60C2 #DD8FD4

Accessibility & contrast

On white

4.95
#BA38AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BA38AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38AB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38AB#FFFFFF#000000##FFFFFF
##BA38AB1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#C2446D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba38ab;
/* rgb */ color: rgb(186, 56, 171);
/* oklch */ color: oklch(57.3% 0.207 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27ac4',
    500: '#ba38ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba38ab;
$custom-light: #d27ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38ab",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 306.923,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57251,
    "c": 0.20723,
    "h": 333
  },
  "luminance": 0.16208
}

Semantic roles & 50–950 ramp

primary
#BA38AB
secondary
#86C88D
accent
#DD5C4B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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