#BA5FEA#BA5FEA

#BA5FEA is a light, highly saturated violet. Relative luminance 0.246; OKLCH L 65.2% C 0.211 H 312.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#BA5FEA
RGBrgb(186, 95, 234)
HSLhsl(279, 77%, 65%)
HSVhsv(279, 59%, 92%)
CMYKcmyk(20.5%, 59.4%, 0%, 8.2%)
CIE-LABlab(56.65, 59.01, -55.59)
CIE-LCHlch(56.65, 81.07, 316.71°)
OKLaboklab(65.16% 0.1416 -0.1562)
OKLCHoklch(65.16% 0.211 312.2)
XYZxyz(39.1905, 24.5650, 80.5030)
Luminance0.2456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FEA #8FEA5F
analogous
#755FEA #BA5FEA #EA5FD4
triadic
#BA5FEA #EABA5F #5FEABA
tetradic
#BA5FEA #EA755F #8FEA5F #5FD4EA
square
#BA5FEA #EA755F #8FEA5F #5FD4EA
split-complementary
#BA5FEA #D4EA5F #5FEA75
monochromatic
#8018B7 #A329E3 #BA5FEA #D195F1 #E9CBF8

Accessibility & contrast

On white

3.55
#BA5FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#BA5FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FEA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FEA#FFFFFF#000000##000000
##BA5FEA1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D83EE
Deuteranopia (green-blind)
#558AE7
Tritanopia (blue-blind)
#B5789C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5fea;
/* rgb */ color: rgb(186, 95, 234);
/* oklch */ color: oklch(65.2% 0.211 312.2);
Tailwind
colors: {
  custom: {
    50: '#d291f1',
    500: '#ba5fea',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fea;
$custom-light: #d291f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fea",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 279.281,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.65155,
    "c": 0.21079,
    "h": 312.2
  },
  "luminance": 0.24564
}

Semantic roles & 50–950 ramp

primary
#BA5FEA
secondary
#CBEABA
accent
#D90C53
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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