#BA5EC2#BA5EC2

#BA5EC2 is a light, vivid purple. Relative luminance 0.223; OKLCH L 62.8% C 0.173 H 324.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#BA5EC2
RGBrgb(186, 94, 194)
HSLhsl(295, 45%, 56%)
HSVhsv(295, 52%, 76%)
CMYKcmyk(4.1%, 51.5%, 0%, 23.9%)
CIE-LABlab(54.39, 51.51, -36.51)
CIE-LCHlch(54.39, 63.13, 324.67°)
OKLaboklab(62.82% 0.1402 -0.1007)
OKLCHoklch(62.82% 0.173 324.3)
XYZxyz(33.9891, 22.3412, 53.5504)
Luminance0.2234 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EC2 #66C25E
analogous
#885EC2 #BA5EC2 #C25E98
triadic
#BA5EC2 #C2BA5E #5EC2BA
tetradic
#BA5EC2 #C2885E #66C25E #5E98C2
square
#BA5EC2 #C2885E #66C25E #5E98C2
split-complementary
#BA5EC2 #98C25E #5EC288
monochromatic
#722E78 #9C3EA4 #BA5EC2 #CD8AD3 #E0B7E4

Accessibility & contrast

On white

3.84
#BA5EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#BA5EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EC2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EC2#FFFFFF#000000##000000
##BA5EC21.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#517BC5
Deuteranopia (green-blind)
#6D86BF
Tritanopia (blue-blind)
#BD6A87
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba5ec2;
/* rgb */ color: rgb(186, 94, 194);
/* oklch */ color: oklch(62.8% 0.173 324.3);
Tailwind
colors: {
  custom: {
    50: '#d18fd5',
    500: '#ba5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ec2;
$custom-light: #d18fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ec2",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 295.2,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62824,
    "c": 0.1726,
    "h": 324.3
  },
  "luminance": 0.2234
}

Semantic roles & 50–950 ramp

primary
#BA5EC2
secondary
#ADD2A9
accent
#D5535D
background
#FDF9FD
surface
#FAF1FA
border
#D3CBD3
text
#140D14
muted
#837E83

Preview Lab

Preview with #BA5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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