#BA38C8#BA38C8

#BA38C8 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.9% C 0.230 H 323.7°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA38C8
RGBrgb(186, 56, 200)
HSLhsl(294, 57%, 50%)
HSVhsv(294, 72%, 78%)
CMYKcmyk(7%, 72%, 0%, 21.6%)
CIE-LABlab(48.81, 68.81, -48.79)
CIE-LCHlch(48.81, 84.35, 324.66°)
OKLaboklab(58.88% 0.1851 -0.1361)
OKLCHoklch(58.88% 0.23 323.7)
XYZxyz(32.0883, 17.4395, 56.3084)
Luminance0.1744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C8 #46C838
analogous
#7238C8 #BA38C8 #C8388E
triadic
#BA38C8 #C8BA38 #38C8BA
tetradic
#BA38C8 #C87238 #46C838 #388EC8
square
#BA38C8 #C87238 #46C838 #388EC8
split-complementary
#BA38C8 #8EC838 #38C872
monochromatic
#611D69 #8E2A99 #BA38C8 #CB68D5 #DB98E3

Accessibility & contrast

On white

4.68
#BA38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#BA38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38C8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38C8#FFFFFF#000000##FFFFFF
##BA38C81.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#5179C5
Tritanopia (blue-blind)
#BD527D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba38c8;
/* rgb */ color: rgb(186, 56, 200);
/* oklch */ color: oklch(58.9% 0.230 323.7);
Tailwind
colors: {
  custom: {
    50: '#d37bd9',
    500: '#ba38c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c8;
$custom-light: #d37bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c8",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 294.167,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58875,
    "c": 0.22973,
    "h": 323.7
  },
  "luminance": 0.17438
}

Semantic roles & 50–950 ramp

primary
#BA38C8
secondary
#94CE8E
accent
#E04857
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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