#BA54C8#BA54C8

#BA54C8 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.8% C 0.194 H 322.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA54C8
RGBrgb(186, 84, 200)
HSLhsl(293, 51%, 56%)
HSVhsv(293, 58%, 78%)
CMYKcmyk(7%, 58%, 0%, 21.6%)
CIE-LABlab(52.90, 57.43, -42.30)
CIE-LCHlch(52.90, 71.32, 323.62°)
OKLaboklab(61.83% 0.154 -0.1174)
OKLCHoklch(61.83% 0.194 322.7)
XYZxyz(33.8443, 20.9516, 56.8937)
Luminance0.2095 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54C8 #62C854
analogous
#8054C8 #BA54C8 #C8549C
triadic
#BA54C8 #C8BA54 #54C8BA
tetradic
#BA54C8 #C88054 #62C854 #549CC8
square
#BA54C8 #C88054 #62C854 #549CC8
split-complementary
#BA54C8 #9CC854 #54C880
monochromatic
#70277A #9B36A9 #BA54C8 #CD82D7 #DFB1E6

Accessibility & contrast

On white

4.05
#BA54C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#BA54C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54C8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54C8#FFFFFF#000000##000000
##BA54C81.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F77CC
Deuteranopia (green-blind)
#6382C5
Tritanopia (blue-blind)
#BD6586
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba54c8;
/* rgb */ color: rgb(186, 84, 200);
/* oklch */ color: oklch(61.8% 0.194 322.7);
Tailwind
colors: {
  custom: {
    50: '#d18ad9',
    500: '#ba54c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba54c8;
$custom-light: #d18ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54c8",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 292.759,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61826,
    "c": 0.1936,
    "h": 322.7
  },
  "luminance": 0.2095
}

Semantic roles & 50–950 ramp

primary
#BA54C8
secondary
#AAD4A4
accent
#DB4D5E
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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