#BA38C2#BA38C2

#BA38C2 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.5% C 0.225 H 325.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA38C2
RGBrgb(186, 56, 194)
HSLhsl(297, 55%, 49%)
HSVhsv(297, 71%, 76%)
CMYKcmyk(4.1%, 71.1%, 0%, 23.9%)
CIE-LABlab(48.47, 67.78, -45.87)
CIE-LCHlch(48.47, 81.84, 325.91°)
OKLaboklab(58.52% 0.1853 -0.1275)
OKLCHoklch(58.52% 0.225 325.5)
XYZxyz(31.4008, 17.1645, 52.6877)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C2 #40C238
analogous
#7538C2 #BA38C2 #C23885
triadic
#BA38C2 #C2BA38 #38C2BA
tetradic
#BA38C2 #C27538 #40C238 #3885C2
square
#BA38C2 #C27538 #40C238 #3885C2
split-complementary
#BA38C2 #85C238 #38C275
monochromatic
#5F1D63 #8C2A93 #BA38C2 #CC65D2 #DC94E0

Accessibility & contrast

On white

4.74
#BA38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38C2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38C2#FFFFFF#000000##FFFFFF
##BA38C21.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1269C6
Deuteranopia (green-blind)
#5579BF
Tritanopia (blue-blind)
#BE4F7A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba38c2;
/* rgb */ color: rgb(186, 56, 194);
/* oklch */ color: oklch(58.5% 0.225 325.5);
Tailwind
colors: {
  custom: {
    50: '#d37bd5',
    500: '#ba38c2',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c2;
$custom-light: #d37bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c2",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 296.522,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5852,
    "c": 0.22493,
    "h": 325.5
  },
  "luminance": 0.17162
}

Semantic roles & 50–950 ramp

primary
#BA38C2
secondary
#8ECB8A
accent
#DF4952
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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