#BA37D9#BA37D9

#BA37D9 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.8% C 0.245 H 319.0°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#BA37D9
RGBrgb(186, 55, 217)
HSLhsl(289, 68%, 53%)
HSVhsv(289, 75%, 85%)
CMYKcmyk(14.3%, 74.7%, 0%, 14.9%)
CIE-LABlab(49.72, 72.15, -57.10)
CIE-LCHlch(49.72, 92.01, 321.64°)
OKLaboklab(59.85% 0.1847 -0.1603)
OKLCHoklch(59.85% 0.245 319)
XYZxyz(34.1386, 18.1829, 67.3436)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37D9 #56D937
analogous
#6937D9 #BA37D9 #D937A7
triadic
#BA37D9 #D9BA37 #37D9BA
tetradic
#BA37D9 #D96937 #56D937 #37A7D9
square
#BA37D9 #D96937 #56D937 #37A7D9
split-complementary
#BA37D9 #A7D937 #37D969
monochromatic
#6A187E #9622B1 #BA37D9 #CC6AE3 #DD9EED

Accessibility & contrast

On white

4.53
#BA37D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#BA37D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA37D9
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37D9#FFFFFF#000000##000000
##BA37D91.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#BA5986
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba37d9;
/* rgb */ color: rgb(186, 55, 217);
/* oklch */ color: oklch(59.8% 0.245 319.0);
Tailwind
colors: {
  custom: {
    50: '#d37be5',
    500: '#ba37d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba37d9;
$custom-light: #d37be5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37d9",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 217
  },
  "hsl": {
    "h": 288.519,
    "s": 68.067,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59849,
    "c": 0.2446,
    "h": 319
  },
  "luminance": 0.18181
}

Semantic roles & 50–950 ramp

primary
#BA37D9
secondary
#A0D993
accent
#EB3D5E
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA37D9

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

Preview Lab → · Contrast checker → · Palette generator →

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