#BA38B3#BA38B3

#BA38B3 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.213 H 330.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA38B3
RGBrgb(186, 56, 179)
HSLhsl(303, 54%, 47%)
HSVhsv(303, 70%, 73%)
CMYKcmyk(0%, 69.9%, 3.8%, 27.1%)
CIE-LABlab(47.66, 65.30, -38.40)
CIE-LCHlch(47.66, 75.76, 329.54°)
OKLaboklab(57.68% 0.1851 -0.1059)
OKLCHoklch(57.68% 0.213 330.2)
XYZxyz(29.8004, 16.5244, 44.2591)
Luminance0.1652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B3 #38BA3F
analogous
#8038BA #BA38B3 #BA3872
triadic
#BA38B3 #B3BA38 #38B3BA
tetradic
#BA38B3 #BA8038 #38BA3F #3872BA
square
#BA38B3 #BA8038 #38BA3F #3872BA
split-complementary
#BA38B3 #72BA38 #38BA80
monochromatic
#5C1C58 #8B2A86 #BA38B3 #CF60C9 #DD8FD9

Accessibility & contrast

On white

4.88
#BA38B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BA38B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38B3
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B3#FFFFFF#000000##FFFFFF
##BA38B31.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B6
Deuteranopia (green-blind)
#5E77B0
Tritanopia (blue-blind)
#C14871
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba38b3;
/* rgb */ color: rgb(186, 56, 179);
/* oklch */ color: oklch(57.7% 0.213 330.2);
Tailwind
colors: {
  custom: {
    50: '#d27aca',
    500: '#ba38b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b3;
$custom-light: #d27aca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b3",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 303.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57675,
    "c": 0.21324,
    "h": 330.2
  },
  "luminance": 0.16522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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