#BA54ED#BA54ED

#BA54ED is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 64.0% C 0.229 H 312.4°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA54ED
RGBrgb(186, 84, 237)
HSLhsl(280, 81%, 63%)
HSVhsv(280, 65%, 93%)
CMYKcmyk(21.5%, 64.6%, 0%, 7.1%)
CIE-LABlab(54.96, 64.72, -59.97)
CIE-LCHlch(54.96, 88.23, 317.18°)
OKLaboklab(63.99% 0.1542 -0.1689)
OKLCHoklch(63.99% 0.229 312.4)
XYZxyz(38.7033, 22.8952, 82.4847)
Luminance0.2289 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54ED #87ED54
analogous
#6D54ED #BA54ED #ED54D3
triadic
#BA54ED #EDBA54 #54EDBA
tetradic
#BA54ED #ED6D54 #87ED54 #54D3ED
square
#BA54ED #ED6D54 #87ED54 #54D3ED
split-complementary
#BA54ED #D3ED54 #54ED6D
monochromatic
#7E13B4 #A41DE7 #BA54ED #D08BF3 #E7C3F9

Accessibility & contrast

On white

3.76
#BA54ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#BA54ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54ED
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54ED#FFFFFF#000000##000000
##BA54ED1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#4786E9
Tritanopia (blue-blind)
#B4729A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba54ed;
/* rgb */ color: rgb(186, 84, 237);
/* oklch */ color: oklch(64.0% 0.229 312.4);
Tailwind
colors: {
  custom: {
    50: '#d38af4',
    500: '#ba54ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba54ed;
$custom-light: #d38af4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54ed",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 280,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63991,
    "c": 0.22875,
    "h": 312.4
  },
  "luminance": 0.22894
}

Semantic roles & 50–950 ramp

primary
#BA54ED
secondary
#C5EAB3
accent
#DD084F
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA54ED

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

Preview Lab → · Contrast checker → · Palette generator →

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