#BA5FE3#BA5FE3

#BA5FE3 is a light, highly saturated purple. Relative luminance 0.242; OKLCH L 64.7% C 0.204 H 314.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#BA5FE3
RGBrgb(186, 95, 227)
HSLhsl(281, 70%, 63%)
HSVhsv(281, 58%, 89%)
CMYKcmyk(18.1%, 58.1%, 0%, 11%)
CIE-LABlab(56.26, 57.54, -52.29)
CIE-LCHlch(56.26, 77.75, 317.74°)
OKLaboklab(64.74% 0.1415 -0.1465)
OKLCHoklch(64.74% 0.204 314)
XYZxyz(38.2047, 24.1707, 75.3110)
Luminance0.2417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FE3 #88E35F
analogous
#785FE3 #BA5FE3 #E35FCA
triadic
#BA5FE3 #E3BA5F #5FE3BA
tetradic
#BA5FE3 #E3785F #88E35F #5FCAE3
square
#BA5FE3 #E3785F #88E35F #5FCAE3
split-complementary
#BA5FE3 #CAE35F #5FE378
monochromatic
#7E1EAA #A42BDA #BA5FE3 #D093EC #E7C7F5

Accessibility & contrast

On white

3.60
#BA5FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#BA5FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FE3
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FE3#FFFFFF#000000##000000
##BA5FE31.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3782E7
Deuteranopia (green-blind)
#5B89E0
Tritanopia (blue-blind)
#B67698
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5fe3;
/* rgb */ color: rgb(186, 95, 227);
/* oklch */ color: oklch(64.7% 0.204 314.0);
Tailwind
colors: {
  custom: {
    50: '#d291ec',
    500: '#ba5fe3',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fe3;
$custom-light: #d291ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fe3",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 227
  },
  "hsl": {
    "h": 281.364,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.64744,
    "c": 0.20366,
    "h": 314
  },
  "luminance": 0.2417
}

Semantic roles & 50–950 ramp

primary
#BA5FE3
secondary
#C6E7B7
accent
#D2134F
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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