#BA479E#BA479E

#BA479E is a mid, vivid pink. Relative luminance 0.174; OKLCH L 58.2% C 0.178 H 338.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA479E
RGBrgb(186, 71, 158)
HSLhsl(315, 45%, 50%)
HSVhsv(315, 62%, 73%)
CMYKcmyk(0%, 61.8%, 15.1%, 27.1%)
CIE-LABlab(48.78, 56.12, -24.25)
CIE-LCHlch(48.78, 61.13, 336.63°)
OKLaboklab(58.17% 0.1654 -0.0655)
OKLCHoklch(58.17% 0.178 338.4)
XYZxyz(28.6750, 17.4166, 34.1926)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA479E #47BA63
analogous
#9D47BA #BA479E #BA4764
triadic
#BA479E #9EBA47 #479EBA
tetradic
#BA479E #BA9D47 #47BA63 #4764BA
square
#BA479E #BA9D47 #47BA63 #4764BA
split-complementary
#BA479E #64BA47 #47BA9D
monochromatic
#622553 #8E3579 #BA479E #CB74B5 #DBA0CD

Accessibility & contrast

On white

4.68
#BA479E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA479E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA479E
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA479E#FFFFFF#000000##FFFFFF
##BA479E1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B68A1
Deuteranopia (green-blind)
#6E7A9B
Tritanopia (blue-blind)
#C44B6C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba479e;
/* rgb */ color: rgb(186, 71, 158);
/* oklch */ color: oklch(58.2% 0.178 338.4);
Tailwind
colors: {
  custom: {
    50: '#d281bb',
    500: '#ba479e',
    950: '#000000',
  },
}
SCSS
$custom: #ba479e;
$custom-light: #d281bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba479e",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 314.609,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5817,
    "c": 0.17791,
    "h": 338.4
  },
  "luminance": 0.17414
}

Semantic roles & 50–950 ramp

primary
#BA479E
secondary
#95C8A1
accent
#D57253
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA479E

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

Preview Lab → · Contrast checker → · Palette generator →

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