#BA54B2#BA54B2

#BA54B2 is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.7% C 0.174 H 330.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA54B2
RGBrgb(186, 84, 178)
HSLhsl(305, 43%, 53%)
HSVhsv(305, 55%, 73%)
CMYKcmyk(0%, 54.8%, 4.3%, 27.1%)
CIE-LABlab(51.83, 53.47, -31.26)
CIE-LCHlch(51.83, 61.94, 329.69°)
OKLaboklab(60.7% 0.1515 -0.0855)
OKLCHoklch(60.7% 0.174 330.6)
XYZxyz(31.4557, 19.9961, 44.3137)
Luminance0.1999 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54B2 #54BA5C
analogous
#8F54BA #BA54B2 #BA547F
triadic
#BA54B2 #B2BA54 #54B2BA
tetradic
#BA54B2 #BA8F54 #54BA5C #547FBA
square
#BA54B2 #BA8F54 #54BA5C #547FBA
split-complementary
#BA54B2 #7FBA54 #54BA8F
monochromatic
#692A64 #953C8E #BA54B2 #CC80C6 #DDABD9

Accessibility & contrast

On white

4.20
#BA54B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BA54B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54B2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54B2#FFFFFF#000000##000000
##BA54B21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E73B5
Deuteranopia (green-blind)
#6E81AF
Tritanopia (blue-blind)
#C05D7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba54b2;
/* rgb */ color: rgb(186, 84, 178);
/* oklch */ color: oklch(60.7% 0.174 330.6);
Tailwind
colors: {
  custom: {
    50: '#d189c9',
    500: '#ba54b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba54b2;
$custom-light: #d189c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54b2",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 304.706,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.607,
    "c": 0.17402,
    "h": 330.6
  },
  "luminance": 0.19994
}

Semantic roles & 50–950 ramp

primary
#BA54B2
secondary
#9FCBA2
accent
#D25F56
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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