#BA58FF#BA58FF

#BA58FF is a light, highly saturated violet. Relative luminance 0.246; OKLCH L 65.6% C 0.241 H 308.0°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#BA58FF
RGBrgb(186, 88, 255)
HSLhsl(275, 100%, 67%)
HSVhsv(275, 65%, 100%)
CMYKcmyk(27.1%, 65.5%, 0%, 0%)
CIE-LABlab(56.72, 66.73, -67.15)
CIE-LCHlch(56.72, 94.67, 314.82°)
OKLaboklab(65.61% 0.1487 -0.19)
OKLCHoklch(65.61% 0.241 308)
XYZxyz(41.7857, 24.6392, 97.1429)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58FF #9DFF58
analogous
#6758FF #BA58FF #FF58F0
triadic
#BA58FF #FFBA58 #58FFBA
tetradic
#BA58FF #FF6758 #9DFF58 #58F0FF
square
#BA58FF #FF6758 #9DFF58 #58F0FF
split-complementary
#BA58FF #F0FF58 #58FF67
monochromatic
#8100DD #A11BFF #BA58FF #D395FF #EDD2FF

Accessibility & contrast

On white

3.54
#BA58FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#BA58FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58FF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58FF#FFFFFF#000000##000000
##BA58FF1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FF
Deuteranopia (green-blind)
#3689FB
Tritanopia (blue-blind)
#AF7CA4
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba58ff;
/* rgb */ color: rgb(186, 88, 255);
/* oklch */ color: oklch(65.6% 0.241 308.0);
Tailwind
colors: {
  custom: {
    50: '#d38dff',
    500: '#ba58ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba58ff;
$custom-light: #d38dff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58ff",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 255
  },
  "hsl": {
    "h": 275.21,
    "s": 100,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65611,
    "c": 0.24128,
    "h": 308
  },
  "luminance": 0.24639
}

Semantic roles & 50–950 ramp

primary
#BA58FF
secondary
#D5F4BF
accent
#E6005F
background
#FDF9FF
surface
#FBF1FF
border
#D4CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA58FF

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

Preview Lab → · Contrast checker → · Palette generator →

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