#BA5EF5#BA5EF5

#BA5EF5 is a light, highly saturated violet. Relative luminance 0.250; OKLCH L 65.7% C 0.223 H 309.7°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#BA5EF5
RGBrgb(186, 94, 245)
HSLhsl(277, 88%, 66%)
HSVhsv(277, 62%, 96%)
CMYKcmyk(24.1%, 61.6%, 0%, 3.9%)
CIE-LABlab(57.11, 61.82, -60.98)
CIE-LCHlch(57.11, 86.84, 315.39°)
OKLaboklab(65.7% 0.1426 -0.172)
OKLCHoklch(65.7% 0.223 309.7)
XYZxyz(40.7306, 25.0378, 89.0556)
Luminance0.2504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EF5 #99F55E
analogous
#6F5EF5 #BA5EF5 #F55EE5
triadic
#BA5EF5 #F5BA5E #5EF5BA
tetradic
#BA5EF5 #F56F5E #99F55E #5EE5F5
square
#BA5EF5 #F56F5E #99F55E #5EE5F5
split-complementary
#BA5EF5 #E5F55E #5EF56F
monochromatic
#810DCC #A124F1 #BA5EF5 #D398F9 #EBD1FC

Accessibility & contrast

On white

3.50
#BA5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#BA5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EF5
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EF5#FFFFFF#000000##000000
##BA5EF51.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1185FA
Deuteranopia (green-blind)
#4A8AF1
Tritanopia (blue-blind)
#B27CA1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5ef5;
/* rgb */ color: rgb(186, 94, 245);
/* oklch */ color: oklch(65.7% 0.223 309.7);
Tailwind
colors: {
  custom: {
    50: '#d390f9',
    500: '#ba5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ef5;
$custom-light: #d390f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ef5",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 276.556,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65696,
    "c": 0.2234,
    "h": 309.7
  },
  "luminance": 0.25037
}

Semantic roles & 50–950 ramp

primary
#BA5EF5
secondary
#D2F0BF
accent
#E5015A
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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