#BA59F8#BA59F8

#BA59F8 is a light, highly saturated violet. Relative luminance 0.244; OKLCH L 65.3% C 0.233 H 309.4°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#BA59F8
RGBrgb(186, 89, 248)
HSLhsl(277, 92%, 66%)
HSVhsv(277, 64%, 97%)
CMYKcmyk(25%, 64.1%, 0%, 2.7%)
CIE-LABlab(56.45, 64.78, -63.72)
CIE-LCHlch(56.45, 90.86, 315.48°)
OKLaboklab(65.28% 0.1481 -0.18)
OKLCHoklch(65.28% 0.233 309.4)
XYZxyz(40.7620, 24.3619, 91.3437)
Luminance0.2436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59F8 #97F859
analogous
#6A59F8 #BA59F8 #F859E6
triadic
#BA59F8 #F8BA59 #59F8BA
tetradic
#BA59F8 #F86A59 #97F859 #59E6F8
square
#BA59F8 #F86A59 #97F859 #59E6F8
split-complementary
#BA59F8 #E6F859 #59F86A
monochromatic
#8109CE #A21EF6 #BA59F8 #D294FA #EBCEFD

Accessibility & contrast

On white

3.58
#BA59F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#BA59F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59F8
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59F8#FFFFFF#000000##000000
##BA59F81.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FD
Deuteranopia (green-blind)
#4189F4
Tritanopia (blue-blind)
#B17AA1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba59f8;
/* rgb */ color: rgb(186, 89, 248);
/* oklch */ color: oklch(65.3% 0.233 309.4);
Tailwind
colors: {
  custom: {
    50: '#d38efb',
    500: '#ba59f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba59f8;
$custom-light: #d38efb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59f8",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 248
  },
  "hsl": {
    "h": 276.604,
    "s": 91.908,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65275,
    "c": 0.23305,
    "h": 309.4
  },
  "luminance": 0.24361
}

Semantic roles & 50–950 ramp

primary
#BA59F8
secondary
#D1F1BC
accent
#E60059
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA59F8

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

Preview Lab → · Contrast checker → · Palette generator →

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