#BA5EE9#BA5EE9

#BA5EE9 is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 65.0% C 0.211 H 312.5°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#BA5EE9
RGBrgb(186, 94, 233)
HSLhsl(280, 76%, 64%)
HSVhsv(280, 60%, 91%)
CMYKcmyk(20.2%, 59.7%, 0%, 8.6%)
CIE-LABlab(56.42, 59.28, -55.40)
CIE-LCHlch(56.42, 81.14, 316.93°)
OKLaboklab(64.97% 0.1428 -0.1556)
OKLCHoklch(64.97% 0.211 312.5)
XYZxyz(38.9578, 24.3287, 79.7187)
Luminance0.2433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EE9 #8DE95E
analogous
#755EE9 #BA5EE9 #E95ED3
triadic
#BA5EE9 #E9BA5E #5EE9BA
tetradic
#BA5EE9 #E9755E #8DE95E #5ED3E9
square
#BA5EE9 #E9755E #8DE95E #5ED3E9
split-complementary
#BA5EE9 #D3E95E #5EE975
monochromatic
#7F19B4 #A328E2 #BA5EE9 #D194F0 #E8CAF8

Accessibility & contrast

On white

3.58
#BA5EE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#BA5EE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EE9
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EE9#FFFFFF#000000##000000
##BA5EE91.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C82ED
Deuteranopia (green-blind)
#5589E6
Tritanopia (blue-blind)
#B5779B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5ee9;
/* rgb */ color: rgb(186, 94, 233);
/* oklch */ color: oklch(65.0% 0.211 312.5);
Tailwind
colors: {
  custom: {
    50: '#d290f1',
    500: '#ba5ee9',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ee9;
$custom-light: #d290f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ee9",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 233
  },
  "hsl": {
    "h": 279.712,
    "s": 75.956,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64967,
    "c": 0.21119,
    "h": 312.5
  },
  "luminance": 0.24328
}

Semantic roles & 50–950 ramp

primary
#BA5EE9
secondary
#CAEAB9
accent
#D80D52
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5EE9

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

Preview Lab → · Contrast checker → · Palette generator →

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