#BA5FED#BA5FED

#BA5FED is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.3% C 0.214 H 311.5°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#BA5FED
RGBrgb(186, 95, 237)
HSLhsl(278, 80%, 65%)
HSVhsv(278, 60%, 93%)
CMYKcmyk(21.5%, 59.9%, 0%, 7.1%)
CIE-LABlab(56.82, 59.64, -56.99)
CIE-LCHlch(56.82, 82.49, 316.30°)
OKLaboklab(65.33% 0.1416 -0.1603)
OKLCHoklch(65.33% 0.214 311.5)
XYZxyz(39.6252, 24.7389, 82.7920)
Luminance0.2474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FED #92ED5F
analogous
#735FED #BA5FED #ED5FD9
triadic
#BA5FED #EDBA5F #5FEDBA
tetradic
#BA5FED #ED735F #92ED5F #5FD9ED
square
#BA5FED #ED735F #92ED5F #5FD9ED
split-complementary
#BA5FED #D9ED5F #5FED73
monochromatic
#8015BC #A228E7 #BA5FED #D296F3 #E9CDF9

Accessibility & contrast

On white

3.53
#BA5FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#BA5FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FED
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FED#FFFFFF#000000##000000
##BA5FED1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2984F1
Deuteranopia (green-blind)
#538AEA
Tritanopia (blue-blind)
#B47A9D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5fed;
/* rgb */ color: rgb(186, 95, 237);
/* oklch */ color: oklch(65.3% 0.214 311.5);
Tailwind
colors: {
  custom: {
    50: '#d291f3',
    500: '#ba5fed',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fed;
$custom-light: #d291f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fed",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 237
  },
  "hsl": {
    "h": 278.451,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.65334,
    "c": 0.21384,
    "h": 311.5
  },
  "luminance": 0.24738
}

Semantic roles & 50–950 ramp

primary
#BA5FED
secondary
#CDECBC
accent
#DC0955
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5FED

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

Preview Lab → · Contrast checker → · Palette generator →

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