#BA38E6#BA38E6

#BA38E6 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.8% C 0.254 H 315.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#BA38E6
RGBrgb(186, 56, 230)
HSLhsl(285, 78%, 56%)
HSVhsv(285, 76%, 90%)
CMYKcmyk(19.1%, 75.7%, 0%, 9.8%)
CIE-LABlab(50.67, 74.22, -62.95)
CIE-LCHlch(50.67, 97.32, 319.70°)
OKLaboklab(60.79% 0.1822 -0.1775)
OKLCHoklch(60.79% 0.254 315.8)
XYZxyz(35.9445, 18.9820, 76.6181)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38E6 #64E638
analogous
#6338E6 #BA38E6 #E638BB
triadic
#BA38E6 #E6BA38 #38E6BA
tetradic
#BA38E6 #E66338 #64E638 #38BBE6
square
#BA38E6 #E66338 #64E638 #38BBE6
split-complementary
#BA38E6 #BBE638 #38E663
monochromatic
#711291 #9C19C8 #BA38E6 #CD6EED #E0A5F4

Accessibility & contrast

On white

4.38
#BA38E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#BA38E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA38E6
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38E6#FFFFFF#000000##000000
##BA38E61.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071EB
Deuteranopia (green-blind)
#347CE2
Tritanopia (blue-blind)
#B75F8E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba38e6;
/* rgb */ color: rgb(186, 56, 230);
/* oklch */ color: oklch(60.8% 0.254 315.8);
Tailwind
colors: {
  custom: {
    50: '#d47cef',
    500: '#ba38e6',
    950: '#000000',
  },
}
SCSS
$custom: #ba38e6;
$custom-light: #d47cef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38e6",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 230
  },
  "hsl": {
    "h": 284.828,
    "s": 77.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60786,
    "c": 0.2544,
    "h": 315.8
  },
  "luminance": 0.18981
}

Semantic roles & 50–950 ramp

primary
#BA38E6
secondary
#ABE199
accent
#F43464
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA38E6

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

Preview Lab → · Contrast checker → · Palette generator →

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