#BA38BF#BA38BF

#BA38BF is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.3% C 0.223 H 326.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA38BF
RGBrgb(186, 56, 191)
HSLhsl(298, 55%, 48%)
HSVhsv(298, 71%, 75%)
CMYKcmyk(2.6%, 70.7%, 0%, 25.1%)
CIE-LABlab(48.30, 67.27, -44.39)
CIE-LCHlch(48.30, 80.60, 326.58°)
OKLaboklab(58.35% 0.1853 -0.1232)
OKLCHoklch(58.35% 0.223 326.4)
XYZxyz(31.0673, 17.0311, 50.9311)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38BF #3DBF38
analogous
#7638BF #BA38BF #BF3880
triadic
#BA38BF #BFBA38 #38BFBA
tetradic
#BA38BF #BF7638 #3DBF38 #3880BF
square
#BA38BF #BF7638 #3DBF38 #3880BF
split-complementary
#BA38BF #80BF38 #38BF76
monochromatic
#5E1C60 #8C2A90 #BA38BF #CD63D1 #DC92DF

Accessibility & contrast

On white

4.77
#BA38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#BA38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38BF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38BF#FFFFFF#000000##FFFFFF
##BA38BF1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1968C3
Deuteranopia (green-blind)
#5778BC
Tritanopia (blue-blind)
#BF4E78
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba38bf;
/* rgb */ color: rgb(186, 56, 191);
/* oklch */ color: oklch(58.3% 0.223 326.4);
Tailwind
colors: {
  custom: {
    50: '#d27bd3',
    500: '#ba38bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba38bf;
$custom-light: #d27bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38bf",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 297.778,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58346,
    "c": 0.22256,
    "h": 326.4
  },
  "luminance": 0.17029
}

Semantic roles & 50–950 ramp

primary
#BA38BF
secondary
#8BCA89
accent
#DE4A4F
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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