#BA38B2#BA38B2

#BA38B2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.6% C 0.212 H 330.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA38B2
RGBrgb(186, 56, 178)
HSLhsl(304, 54%, 47%)
HSVhsv(304, 70%, 73%)
CMYKcmyk(0%, 69.9%, 4.3%, 27.1%)
CIE-LABlab(47.60, 65.14, -37.90)
CIE-LCHlch(47.60, 75.36, 329.81°)
OKLaboklab(57.62% 0.1851 -0.1044)
OKLCHoklch(57.62% 0.212 330.6)
XYZxyz(29.6996, 16.4841, 43.7283)
Luminance0.1648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B2 #38BA40
analogous
#8138BA #BA38B2 #BA3871
triadic
#BA38B2 #B2BA38 #38B2BA
tetradic
#BA38B2 #BA8138 #38BA40 #3871BA
square
#BA38B2 #BA8138 #38BA40 #3871BA
split-complementary
#BA38B2 #71BA38 #38BA81
monochromatic
#5C1C58 #8B2A85 #BA38B2 #CF60C8 #DD8FD8

Accessibility & contrast

On white

4.89
#BA38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA38B2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B2#FFFFFF#000000##FFFFFF
##BA38B21.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba38b2;
/* rgb */ color: rgb(186, 56, 178);
/* oklch */ color: oklch(57.6% 0.212 330.6);
Tailwind
colors: {
  custom: {
    50: '#d27ac9',
    500: '#ba38b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b2;
$custom-light: #d27ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b2",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 303.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57621,
    "c": 0.21248,
    "h": 330.6
  },
  "luminance": 0.16482
}

Semantic roles & 50–950 ramp

primary
#BA38B2
secondary
#86C88A
accent
#DD544B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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