#BA38B0#BA38B0

#BA38B0 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.211 H 331.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA38B0
RGBrgb(186, 56, 176)
HSLhsl(305, 54%, 47%)
HSVhsv(305, 70%, 73%)
CMYKcmyk(0%, 69.9%, 5.4%, 27.1%)
CIE-LABlab(47.50, 64.82, -36.88)
CIE-LCHlch(47.50, 74.58, 330.36°)
OKLaboklab(57.51% 0.185 -0.1015)
OKLCHoklch(57.51% 0.211 331.2)
XYZxyz(29.5003, 16.4043, 42.6785)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B0 #38BA42
analogous
#8338BA #BA38B0 #BA386F
triadic
#BA38B0 #B0BA38 #38B0BA
tetradic
#BA38B0 #BA8338 #38BA42 #386FBA
square
#BA38B0 #BA8338 #38BA42 #386FBA
split-complementary
#BA38B0 #6FBA38 #38BA83
monochromatic
#5C1C57 #8B2A83 #BA38B0 #CF60C7 #DD8FD7

Accessibility & contrast

On white

4.91
#BA38B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#BA38B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38B0
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B0#FFFFFF#000000##FFFFFF
##BA38B01.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B3
Deuteranopia (green-blind)
#5F77AD
Tritanopia (blue-blind)
#C14770
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba38b0;
/* rgb */ color: rgb(186, 56, 176);
/* oklch */ color: oklch(57.5% 0.211 331.2);
Tailwind
colors: {
  custom: {
    50: '#d27ac8',
    500: '#ba38b0',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b0;
$custom-light: #d27ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b0",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 304.615,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57514,
    "c": 0.21096,
    "h": 331.2
  },
  "luminance": 0.16402
}

Semantic roles & 50–950 ramp

primary
#BA38B0
secondary
#86C88B
accent
#DD564B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38B0

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

Preview Lab → · Contrast checker → · Palette generator →

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