#BA38CD#BA38CD

#BA38CD is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.2% C 0.234 H 322.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA38CD
RGBrgb(186, 56, 205)
HSLhsl(292, 60%, 51%)
HSVhsv(292, 73%, 80%)
CMYKcmyk(9.3%, 72.7%, 0%, 19.6%)
CIE-LABlab(49.10, 69.68, -51.21)
CIE-LCHlch(49.10, 86.47, 323.69°)
OKLaboklab(59.18% 0.1848 -0.1431)
OKLCHoklch(59.18% 0.234 322.2)
XYZxyz(32.6822, 17.6771, 59.4363)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38CD #4BCD38
analogous
#6F38CD #BA38CD #CD3895
triadic
#BA38CD #CDBA38 #38CDBA
tetradic
#BA38CD #CD6F38 #4BCD38 #3895CD
square
#BA38CD #CD6F38 #4BCD38 #3895CD
split-complementary
#BA38CD #95CD38 #38CD6F
monochromatic
#641C6F #9028A0 #BA38CD #CB69D9 #DC9AE6

Accessibility & contrast

On white

4.63
#BA38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BA38CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38CD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38CD#FFFFFF#000000##FFFFFF
##BA38CD1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#4E7ACA
Tritanopia (blue-blind)
#BC5480
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba38cd;
/* rgb */ color: rgb(186, 56, 205);
/* oklch */ color: oklch(59.2% 0.234 322.2);
Tailwind
colors: {
  custom: {
    50: '#d37bdd',
    500: '#ba38cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba38cd;
$custom-light: #d37bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38cd",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 292.349,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59178,
    "c": 0.23377,
    "h": 322.2
  },
  "luminance": 0.17675
}

Semantic roles & 50–950 ramp

primary
#BA38CD
secondary
#98D18F
accent
#E34559
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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