#BA38AD#BA38AD

#BA38AD is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.4% C 0.209 H 332.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA38AD
RGBrgb(186, 56, 173)
HSLhsl(306, 54%, 47%)
HSVhsv(306, 70%, 73%)
CMYKcmyk(0%, 69.9%, 7%, 27.1%)
CIE-LABlab(47.35, 64.35, -35.36)
CIE-LCHlch(47.35, 73.42, 331.21°)
OKLaboklab(57.36% 0.1848 -0.0971)
OKLCHoklch(57.36% 0.209 332.3)
XYZxyz(29.2068, 16.2869, 41.1325)
Luminance0.1628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38AD #38BA45
analogous
#8638BA #BA38AD #BA386C
triadic
#BA38AD #ADBA38 #38ADBA
tetradic
#BA38AD #BA8638 #38BA45 #386CBA
square
#BA38AD #BA8638 #38BA45 #386CBA
split-complementary
#BA38AD #6CBA38 #38BA86
monochromatic
#5C1C55 #8B2A81 #BA38AD #CF60C4 #DD8FD5

Accessibility & contrast

On white

4.93
#BA38AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA38AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38AD
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38AD#FFFFFF#000000##FFFFFF
##BA38AD1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3164B0
Deuteranopia (green-blind)
#6177AA
Tritanopia (blue-blind)
#C2456E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba38ad;
/* rgb */ color: rgb(186, 56, 173);
/* oklch */ color: oklch(57.4% 0.209 332.3);
Tailwind
colors: {
  custom: {
    50: '#d27ac6',
    500: '#ba38ad',
    950: '#000000',
  },
}
SCSS
$custom: #ba38ad;
$custom-light: #d27ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38ad",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 306,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57355,
    "c": 0.20872,
    "h": 332.3
  },
  "luminance": 0.16285
}

Semantic roles & 50–950 ramp

primary
#BA38AD
secondary
#86C88C
accent
#DD594B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38AD

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

Preview Lab → · Contrast checker → · Palette generator →

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