#BA38BE#BA38BE

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

Color values

HEX#BA38BE
RGBrgb(186, 56, 190)
HSLhsl(298, 54%, 48%)
HSVhsv(298, 71%, 75%)
CMYKcmyk(2.1%, 70.5%, 0%, 25.5%)
CIE-LABlab(48.24, 67.10, -43.90)
CIE-LCHlch(48.24, 80.19, 326.81°)
OKLaboklab(58.29% 0.1853 -0.1218)
OKLCHoklch(58.29% 0.222 326.7)
XYZxyz(30.9576, 16.9873, 50.3535)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38BE #3CBE38
analogous
#7738BE #BA38BE #BE387F
triadic
#BA38BE #BEBA38 #38BEBA
tetradic
#BA38BE #BE7738 #3CBE38 #387FBE
square
#BA38BE #BE7738 #3CBE38 #387FBE
split-complementary
#BA38BE #7FBE38 #38BE77
monochromatic
#5D1C5F #8C2A8F #BA38BE #CE62D1 #DC92DF

Accessibility & contrast

On white

4.78
#BA38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BA38BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38BE
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38BE#FFFFFF#000000##FFFFFF
##BA38BE1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B68C2
Deuteranopia (green-blind)
#5878BB
Tritanopia (blue-blind)
#BF4D78
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba38be;
/* rgb */ color: rgb(186, 56, 190);
/* oklch */ color: oklch(58.3% 0.222 326.7);
Tailwind
colors: {
  custom: {
    50: '#d27bd2',
    500: '#ba38be',
    950: '#000000',
  },
}
SCSS
$custom: #ba38be;
$custom-light: #d27bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38be",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 298.209,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.58289,
    "c": 0.22176,
    "h": 326.7
  },
  "luminance": 0.16985
}

Semantic roles & 50–950 ramp

primary
#BA38BE
secondary
#8ACA88
accent
#DE4A4E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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