#BA4F9D#BA4F9D

#BA4F9D is a mid, vivid pink. Relative luminance 0.185; OKLCH L 59.1% C 0.165 H 339.3°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA4F9D
RGBrgb(186, 79, 157)
HSLhsl(316, 44%, 52%)
HSVhsv(316, 58%, 73%)
CMYKcmyk(0%, 57.5%, 15.6%, 27.1%)
CIE-LABlab(50.06, 52.38, -21.69)
CIE-LCHlch(50.06, 56.69, 337.51°)
OKLaboklab(59.1% 0.1546 -0.0583)
OKLCHoklch(59.1% 0.165 339.3)
XYZxyz(29.1320, 18.4678, 33.9221)
Luminance0.1847 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F9D #4FBA6C
analogous
#A24FBA #BA4F9D #BA4F68
triadic
#BA4F9D #9DBA4F #4F9DBA
tetradic
#BA4F9D #BAA24F #4FBA6C #4F68BA
square
#BA4F9D #BAA24F #4FBA6C #4F68BA
split-complementary
#BA4F9D #68BA4F #4FBAA2
monochromatic
#662856 #92397A #BA4F9D #CB7BB5 #DCA7CE

Accessibility & contrast

On white

4.47
#BA4F9D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#BA4F9D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4F9D
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F9D#FFFFFF#000000##000000
##BA4F9D1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#546C9F
Deuteranopia (green-blind)
#737D9A
Tritanopia (blue-blind)
#C4526F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4f9d;
/* rgb */ color: rgb(186, 79, 157);
/* oklch */ color: oklch(59.1% 0.165 339.3);
Tailwind
colors: {
  custom: {
    50: '#d186ba',
    500: '#ba4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f9d;
$custom-light: #d186ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f9d",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 316.262,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59097,
    "c": 0.16519,
    "h": 339.3
  },
  "luminance": 0.18465
}

Semantic roles & 50–950 ramp

primary
#BA4F9D
secondary
#9BCAA8
accent
#D37754
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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