#BA5FE8#BA5FE8

#BA5FE8 is a light, highly saturated violet. Relative luminance 0.244; OKLCH L 65.0% C 0.209 H 312.7°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#BA5FE8
RGBrgb(186, 95, 232)
HSLhsl(280, 75%, 64%)
HSVhsv(280, 59%, 91%)
CMYKcmyk(19.8%, 59.1%, 0%, 9%)
CIE-LABlab(56.54, 58.59, -54.65)
CIE-LCHlch(56.54, 80.12, 316.99°)
OKLaboklab(65.04% 0.1415 -0.1534)
OKLCHoklch(65.04% 0.209 312.7)
XYZxyz(38.9048, 24.4507, 78.9983)
Luminance0.2445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FE8 #8DE85F
analogous
#765FE8 #BA5FE8 #E85FD2
triadic
#BA5FE8 #E8BA5F #5FE8BA
tetradic
#BA5FE8 #E8765F #8DE85F #5FD2E8
square
#BA5FE8 #E8765F #8DE85F #5FD2E8
split-complementary
#BA5FE8 #D2E85F #5FE876
monochromatic
#7F1AB3 #A329E0 #BA5FE8 #D195F0 #E8CAF7

Accessibility & contrast

On white

3.57
#BA5FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#BA5FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FE8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FE8#FFFFFF#000000##000000
##BA5FE81.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3083EC
Deuteranopia (green-blind)
#578AE5
Tritanopia (blue-blind)
#B5789B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5fe8;
/* rgb */ color: rgb(186, 95, 232);
/* oklch */ color: oklch(65.0% 0.209 312.7);
Tailwind
colors: {
  custom: {
    50: '#d291f0',
    500: '#ba5fe8',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fe8;
$custom-light: #d291f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fe8",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 279.854,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.65036,
    "c": 0.20874,
    "h": 312.7
  },
  "luminance": 0.2445
}

Semantic roles & 50–950 ramp

primary
#BA5FE8
secondary
#CAE9BA
accent
#D70E52
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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