#BA38B5#BA38B5

#BA38B5 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.215 H 329.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA38B5
RGBrgb(186, 56, 181)
HSLhsl(302, 54%, 47%)
HSVhsv(302, 70%, 73%)
CMYKcmyk(0%, 69.9%, 2.7%, 27.1%)
CIE-LABlab(47.76, 65.62, -39.41)
CIE-LCHlch(47.76, 76.55, 329.01°)
OKLaboklab(57.78% 0.1852 -0.1088)
OKLCHoklch(57.78% 0.215 329.6)
XYZxyz(30.0041, 16.6059, 45.3321)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B5 #38BA3D
analogous
#7E38BA #BA38B5 #BA3874
triadic
#BA38B5 #B5BA38 #38B5BA
tetradic
#BA38B5 #BA7E38 #38BA3D #3874BA
square
#BA38B5 #BA7E38 #38BA3D #3874BA
split-complementary
#BA38B5 #74BA38 #38BA7E
monochromatic
#5C1C59 #8B2A87 #BA38B5 #CF60CB #DD8FDA

Accessibility & contrast

On white

4.86
#BA38B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA38B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38B5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B5#FFFFFF#000000##FFFFFF
##BA38B51.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B9
Deuteranopia (green-blind)
#5D77B2
Tritanopia (blue-blind)
#C14973
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba38b5;
/* rgb */ color: rgb(186, 56, 181);
/* oklch */ color: oklch(57.8% 0.215 329.6);
Tailwind
colors: {
  custom: {
    50: '#d27acb',
    500: '#ba38b5',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b5;
$custom-light: #d27acb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b5",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 302.308,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57784,
    "c": 0.21477,
    "h": 329.6
  },
  "luminance": 0.16604
}

Semantic roles & 50–950 ramp

primary
#BA38B5
secondary
#86C888
accent
#DD504B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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