#BA2F91#BA2F91

#BA2F91 is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.2% C 0.200 H 342.5°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA2F91
RGBrgb(186, 47, 145)
HSLhsl(318, 60%, 46%)
HSVhsv(318, 75%, 73%)
CMYKcmyk(0%, 74.7%, 22%, 27.1%)
CIE-LABlab(44.97, 63.34, -22.36)
CIE-LCHlch(44.97, 67.18, 340.56°)
OKLaboklab(55.21% 0.1906 -0.06)
OKLCHoklch(55.21% 0.2 342.5)
XYZxyz(26.3780, 14.5192, 28.1959)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F91 #2FBA58
analogous
#9D2FBA #BA2F91 #BA2F4B
triadic
#BA2F91 #91BA2F #2F91BA
tetradic
#BA2F91 #BA9D2F #2FBA58 #2F4BBA
square
#BA2F91 #BA9D2F #2FBA58 #2F4BBA
split-complementary
#BA2F91 #4BBA2F #2FBA9D
monochromatic
#581645 #89236B #BA2F91 #D353AD #E084C5

Accessibility & contrast

On white

5.38
#BA2F91 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BA2F91 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F91
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F91#FFFFFF#000000##FFFFFF
##BA2F911.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5C94
Deuteranopia (green-blind)
#69738E
Tritanopia (blue-blind)
#C6305C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba2f91;
/* rgb */ color: rgb(186, 47, 145);
/* oklch */ color: oklch(55.2% 0.200 342.5);
Tailwind
colors: {
  custom: {
    50: '#d375b1',
    500: '#ba2f91',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f91;
$custom-light: #d375b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f91",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 317.698,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55207,
    "c": 0.19977,
    "h": 342.5
  },
  "luminance": 0.14516
}

Semantic roles & 50–950 ramp

primary
#BA2F91
secondary
#7CC993
accent
#E37445
background
#FDF7FA
surface
#FBEEF5
border
#D4C9CF
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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