#BA38C4#BA38C4

#BA38C4 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.227 H 324.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BA38C4
RGBrgb(186, 56, 196)
HSLhsl(296, 56%, 49%)
HSVhsv(296, 71%, 77%)
CMYKcmyk(5.1%, 71.4%, 0%, 23.1%)
CIE-LABlab(48.58, 68.12, -46.85)
CIE-LCHlch(48.58, 82.67, 325.48°)
OKLaboklab(58.64% 0.1852 -0.1304)
OKLCHoklch(58.64% 0.227 324.9)
XYZxyz(31.6269, 17.2550, 53.8786)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C4 #42C438
analogous
#7438C4 #BA38C4 #C43888
triadic
#BA38C4 #C4BA38 #38C4BA
tetradic
#BA38C4 #C47438 #42C438 #3888C4
square
#BA38C4 #C47438 #42C438 #3888C4
split-complementary
#BA38C4 #88C438 #38C474
monochromatic
#601D65 #8D2A94 #BA38C4 #CB66D3 #DB96E1

Accessibility & contrast

On white

4.72
#BA38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#BA38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38C4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38C4#FFFFFF#000000##FFFFFF
##BA38C41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B69C8
Deuteranopia (green-blind)
#5479C1
Tritanopia (blue-blind)
#BE507B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba38c4;
/* rgb */ color: rgb(186, 56, 196);
/* oklch */ color: oklch(58.6% 0.227 324.9);
Tailwind
colors: {
  custom: {
    50: '#d37bd6',
    500: '#ba38c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c4;
$custom-light: #d37bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c4",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 295.714,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58637,
    "c": 0.22653,
    "h": 324.9
  },
  "luminance": 0.17253
}

Semantic roles & 50–950 ramp

primary
#BA38C4
secondary
#90CC8C
accent
#DF4954
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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