#BA50AF#BA50AF

#BA50AF is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.0% C 0.178 H 331.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA50AF
RGBrgb(186, 80, 175)
HSLhsl(306, 43%, 52%)
HSVhsv(306, 57%, 73%)
CMYKcmyk(0%, 57%, 5.9%, 27.1%)
CIE-LABlab(51.01, 54.82, -30.80)
CIE-LCHlch(51.01, 62.88, 330.67°)
OKLaboklab(60.05% 0.1565 -0.0842)
OKLCHoklch(60.05% 0.178 331.7)
XYZxyz(30.8561, 19.2737, 42.6441)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50AF #50BA5B
analogous
#9050BA #BA50AF #BA507A
triadic
#BA50AF #AFBA50 #50AFBA
tetradic
#BA50AF #BA9050 #50BA5B #507ABA
square
#BA50AF #BA9050 #50BA5B #507ABA
split-complementary
#BA50AF #7ABA50 #50BA90
monochromatic
#672961 #933A8A #BA50AF #CB7CC3 #DDA8D7

Accessibility & contrast

On white

4.33
#BA50AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#BA50AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50AF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50AF#FFFFFF#000000##000000
##BA50AF1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C70B2
Deuteranopia (green-blind)
#6D7FAC
Tritanopia (blue-blind)
#C15978
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba50af;
/* rgb */ color: rgb(186, 80, 175);
/* oklch */ color: oklch(60.0% 0.178 331.7);
Tailwind
colors: {
  custom: {
    50: '#d187c7',
    500: '#ba50af',
    950: '#000000',
  },
}
SCSS
$custom: #ba50af;
$custom-light: #d187c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50af",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 175
  },
  "hsl": {
    "h": 306.226,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60048,
    "c": 0.17767,
    "h": 331.7
  },
  "luminance": 0.19272
}

Semantic roles & 50–950 ramp

primary
#BA50AF
secondary
#9CCAA1
accent
#D36255
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA50AF

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

Preview Lab → · Contrast checker → · Palette generator →

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