#BA54A2#BA54A2

#BA54A2 is a mid, vivid pink. Relative luminance 0.194; OKLCH L 60.0% C 0.161 H 337.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA54A2
RGBrgb(186, 84, 162)
HSLhsl(314, 43%, 53%)
HSVhsv(314, 55%, 73%)
CMYKcmyk(0%, 54.8%, 12.9%, 27.1%)
CIE-LABlab(51.14, 50.81, -22.97)
CIE-LCHlch(51.14, 55.76, 335.67°)
OKLaboklab(59.96% 0.1486 -0.062)
OKLCHoklch(59.96% 0.161 337.4)
XYZxyz(29.9419, 19.3906, 36.3412)
Luminance0.1939 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54A2 #54BA6C
analogous
#9F54BA #BA54A2 #BA546F
triadic
#BA54A2 #A2BA54 #54A2BA
tetradic
#BA54A2 #BA9F54 #54BA6C #546FBA
square
#BA54A2 #BA9F54 #54BA6C #546FBA
split-complementary
#BA54A2 #6FBA54 #54BA9F
monochromatic
#692A5A #953C80 #BA54A2 #CC80BA #DDABD1

Accessibility & contrast

On white

4.31
#BA54A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#BA54A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54A2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54A2#FFFFFF#000000##000000
##BA54A21.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5670A5
Deuteranopia (green-blind)
#74809F
Tritanopia (blue-blind)
#C35874
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba54a2;
/* rgb */ color: rgb(186, 84, 162);
/* oklch */ color: oklch(60.0% 0.161 337.4);
Tailwind
colors: {
  custom: {
    50: '#d189bd',
    500: '#ba54a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba54a2;
$custom-light: #d189bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54a2",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 314.118,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59964,
    "c": 0.16105,
    "h": 337.4
  },
  "luminance": 0.19388
}

Semantic roles & 50–950 ramp

primary
#BA54A2
secondary
#9FCBA9
accent
#D27356
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA54A2

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

Preview Lab → · Contrast checker → · Palette generator →

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