#BA5ECD#BA5ECD

#BA5ECD is a light, vivid purple. Relative luminance 0.229; OKLCH L 63.4% C 0.183 H 320.5°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#BA5ECD
RGBrgb(186, 94, 205)
HSLhsl(290, 53%, 59%)
HSVhsv(290, 54%, 80%)
CMYKcmyk(9.3%, 54.1%, 0%, 19.6%)
CIE-LABlab(54.92, 53.61, -41.96)
CIE-LCHlch(54.92, 68.08, 321.95°)
OKLaboklab(63.39% 0.1414 -0.1165)
OKLCHoklch(63.39% 0.183 320.5)
XYZxyz(35.2705, 22.8538, 60.2991)
Luminance0.2285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5ECD #71CD5E
analogous
#825ECD #BA5ECD #CD5EA8
triadic
#BA5ECD #CDBA5E #5ECDBA
tetradic
#BA5ECD #CD825E #71CD5E #5EA8CD
square
#BA5ECD #CD825E #71CD5E #5EA8CD
split-complementary
#BA5ECD #A8CD5E #5ECD82
monochromatic
#772A87 #A038B5 #BA5ECD #CE8DDC #E2BBEA

Accessibility & contrast

On white

3.77
#BA5ECD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#BA5ECD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5ECD
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5ECD#FFFFFF#000000##000000
##BA5ECD1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#497DD1
Deuteranopia (green-blind)
#6887CA
Tritanopia (blue-blind)
#BB6E8D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba5ecd;
/* rgb */ color: rgb(186, 94, 205);
/* oklch */ color: oklch(63.4% 0.183 320.5);
Tailwind
colors: {
  custom: {
    50: '#d190dd',
    500: '#ba5ecd',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ecd;
$custom-light: #d190dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ecd",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 289.73,
    "s": 52.607,
    "l": 58.627
  },
  "oklch": {
    "l": 0.63391,
    "c": 0.1832,
    "h": 320.5
  },
  "luminance": 0.22852
}

Semantic roles & 50–950 ramp

primary
#BA5ECD
secondary
#B5D9AD
accent
#DC4C64
background
#FDF9FD
surface
#FAF1FB
border
#D3CBD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #BA5ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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