#BA37A2#BA37A2

#BA37A2 is a mid, highly saturated pink. Relative luminance 0.158; OKLCH L 56.7% C 0.202 H 336.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA37A2
RGBrgb(186, 55, 162)
HSLhsl(311, 54%, 47%)
HSVhsv(311, 70%, 73%)
CMYKcmyk(0%, 70.4%, 12.9%, 27.1%)
CIE-LABlab(46.69, 63.03, -29.88)
CIE-LCHlch(46.69, 69.75, 334.64°)
OKLaboklab(56.7% 0.1848 -0.0813)
OKLCHoklch(56.7% 0.202 336.2)
XYZxyz(28.1379, 15.7826, 35.7398)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37A2 #37BA4F
analogous
#9037BA #BA37A2 #BA3761
triadic
#BA37A2 #A2BA37 #37A2BA
tetradic
#BA37A2 #BA9037 #37BA4F #3761BA
square
#BA37A2 #BA9037 #37BA4F #3761BA
split-complementary
#BA37A2 #61BA37 #37BA90
monochromatic
#5C1B50 #8B2979 #BA37A2 #D05FBB #DE8ECF

Accessibility & contrast

On white

5.05
#BA37A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA37A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37A2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37A2#FFFFFF#000000##FFFFFF
##BA37A21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#65769F
Tritanopia (blue-blind)
#C43F68
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba37a2;
/* rgb */ color: rgb(186, 55, 162);
/* oklch */ color: oklch(56.7% 0.202 336.2);
Tailwind
colors: {
  custom: {
    50: '#d279be',
    500: '#ba37a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba37a2;
$custom-light: #d279be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37a2",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 310.992,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56704,
    "c": 0.20192,
    "h": 336.2
  },
  "luminance": 0.1578
}

Semantic roles & 50–950 ramp

primary
#BA37A2
secondary
#85C891
accent
#DE654A
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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