#BA317E#BA317E

#BA317E is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.6% C 0.187 H 350.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#BA317E
RGBrgb(186, 49, 126)
HSLhsl(326, 58%, 46%)
HSVhsv(326, 74%, 73%)
CMYKcmyk(0%, 73.7%, 32.3%, 27.1%)
CIE-LABlab(44.44, 60.33, -11.61)
CIE-LCHlch(44.44, 61.44, 349.11°)
OKLaboklab(54.57% 0.1845 -0.0302)
OKLCHoklch(54.57% 0.187 350.7)
XYZxyz(25.1153, 14.1450, 21.1423)
Luminance0.1414 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA317E #31BA6D
analogous
#B131BA #BA317E #BA313A
triadic
#BA317E #7EBA31 #317EBA
tetradic
#BA317E #BAB131 #31BA6D #313ABA
square
#BA317E #BAB131 #31BA6D #313ABA
split-complementary
#BA317E #3ABA31 #31BAB1
monochromatic
#59173C #8A245D #BA317E #D2569C #DF86B8

Accessibility & contrast

On white

5.49
#BA317E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#BA317E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA317E
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA317E#FFFFFF#000000##FFFFFF
##BA317E1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485A80
Deuteranopia (green-blind)
#6F727B
Tritanopia (blue-blind)
#C82853
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba317e;
/* rgb */ color: rgb(186, 49, 126);
/* oklch */ color: oklch(54.6% 0.187 350.7);
Tailwind
colors: {
  custom: {
    50: '#d375a3',
    500: '#ba317e',
    950: '#000000',
  },
}
SCSS
$custom: #ba317e;
$custom-light: #d375a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba317e",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 326.277,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54574,
    "c": 0.18693,
    "h": 350.7
  },
  "luminance": 0.14142
}

Semantic roles & 50–950 ramp

primary
#BA317E
secondary
#7EC99F
accent
#E28A46
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA317E

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

Preview Lab → · Contrast checker → · Palette generator →

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