#BA57CD#BA57CD

#BA57CD is a light, vivid purple. Relative luminance 0.217; OKLCH L 62.5% C 0.194 H 320.9°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA57CD
RGBrgb(186, 87, 205)
HSLhsl(290, 54%, 57%)
HSVhsv(290, 58%, 80%)
CMYKcmyk(9.3%, 57.6%, 0%, 19.6%)
CIE-LABlab(53.67, 56.97, -43.94)
CIE-LCHlch(53.67, 71.95, 322.36°)
OKLaboklab(62.47% 0.1505 -0.1221)
OKLCHoklch(62.47% 0.194 320.9)
XYZxyz(34.6761, 21.6649, 60.1010)
Luminance0.2166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57CD #6ACD57
analogous
#7F57CD #BA57CD #CD57A5
triadic
#BA57CD #CDBA57 #57CDBA
tetradic
#BA57CD #CD7F57 #6ACD57 #57A5CD
square
#BA57CD #CD7F57 #6ACD57 #57A5CD
split-complementary
#BA57CD #A5CD57 #57CD7F
monochromatic
#742783 #9E35B2 #BA57CD #CD86DB #E1B5E9

Accessibility & contrast

On white

3.94
#BA57CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#BA57CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57CD
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57CD#FFFFFF#000000##000000
##BA57CD1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F79D1
Deuteranopia (green-blind)
#6284CA
Tritanopia (blue-blind)
#BC698A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba57cd;
/* rgb */ color: rgb(186, 87, 205);
/* oklch */ color: oklch(62.5% 0.194 320.9);
Tailwind
colors: {
  custom: {
    50: '#d18bdd',
    500: '#ba57cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba57cd;
$custom-light: #d18bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57cd",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 290.339,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.62474,
    "c": 0.19384,
    "h": 320.9
  },
  "luminance": 0.21663
}

Semantic roles & 50–950 ramp

primary
#BA57CD
secondary
#B0D8A8
accent
#DD4A62
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA57CD

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

Preview Lab → · Contrast checker → · Palette generator →

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