#BA55F1#BA55F1

#BA55F1 is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 64.4% C 0.231 H 311.4°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#BA55F1
RGBrgb(186, 85, 241)
HSLhsl(279, 85%, 64%)
HSVhsv(279, 65%, 95%)
CMYKcmyk(22.8%, 64.7%, 0%, 5.5%)
CIE-LABlab(55.37, 65.11, -61.56)
CIE-LCHlch(55.37, 89.60, 316.61°)
OKLaboklab(64.36% 0.1529 -0.1736)
OKLCHoklch(64.36% 0.231 311.4)
XYZxyz(39.3724, 23.2879, 85.6230)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55F1 #8CF155
analogous
#6C55F1 #BA55F1 #F155DA
triadic
#BA55F1 #F1BA55 #55F1BA
tetradic
#BA55F1 #F16C55 #8CF155 #55DAF1
square
#BA55F1 #F16C55 #8CF155 #55DAF1
split-complementary
#BA55F1 #DAF155 #55F16C
monochromatic
#7F0FBC #A31CEC #BA55F1 #D18EF6 #E8C6FA

Accessibility & contrast

On white

3.71
#BA55F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#BA55F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55F1
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55F1#FFFFFF#000000##000000
##BA55F11.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F6
Deuteranopia (green-blind)
#4486ED
Tritanopia (blue-blind)
#B3749C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba55f1;
/* rgb */ color: rgb(186, 85, 241);
/* oklch */ color: oklch(64.4% 0.231 311.4);
Tailwind
colors: {
  custom: {
    50: '#d38bf6',
    500: '#ba55f1',
    950: '#000000',
  },
}
SCSS
$custom: #ba55f1;
$custom-light: #d38bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55f1",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 241
  },
  "hsl": {
    "h": 278.846,
    "s": 84.783,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6436,
    "c": 0.23133,
    "h": 311.4
  },
  "luminance": 0.23287
}

Semantic roles & 50–950 ramp

primary
#BA55F1
secondary
#C9ECB6
accent
#E10452
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA55F1

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

Preview Lab → · Contrast checker → · Palette generator →

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