#BA62EB#BA62EB

#BA62EB is a light, highly saturated violet. Relative luminance 0.252; OKLCH L 65.6% C 0.208 H 311.7°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#BA62EB
RGBrgb(186, 98, 235)
HSLhsl(279, 77%, 65%)
HSVhsv(279, 58%, 92%)
CMYKcmyk(20.9%, 58.3%, 0%, 7.8%)
CIE-LABlab(57.24, 57.77, -55.20)
CIE-LCHlch(57.24, 79.90, 316.30°)
OKLaboklab(65.61% 0.1379 -0.155)
OKLCHoklch(65.61% 0.208 311.7)
XYZxyz(39.6101, 25.1735, 81.3535)
Luminance0.2517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA62EB #93EB62
analogous
#7562EB #BA62EB #EB62D8
triadic
#BA62EB #EBBA62 #62EBBA
tetradic
#BA62EB #EB7562 #93EB62 #62D8EB
square
#BA62EB #EB7562 #93EB62 #62D8EB
split-complementary
#BA62EB #D8EB62 #62EB75
monochromatic
#8118BB #A22CE4 #BA62EB #D298F2 #EACFF9

Accessibility & contrast

On white

3.48
#BA62EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#BA62EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA62EB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA62EB#FFFFFF#000000##000000
##BA62EB1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3385EF
Deuteranopia (green-blind)
#578BE8
Tritanopia (blue-blind)
#B47B9D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba62eb;
/* rgb */ color: rgb(186, 98, 235);
/* oklch */ color: oklch(65.6% 0.208 311.7);
Tailwind
colors: {
  custom: {
    50: '#d293f2',
    500: '#ba62eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba62eb;
$custom-light: #d293f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba62eb",
  "rgb": {
    "r": 186,
    "g": 98,
    "b": 235
  },
  "hsl": {
    "h": 278.54,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65606,
    "c": 0.20751,
    "h": 311.7
  },
  "luminance": 0.25173
}

Semantic roles & 50–950 ramp

primary
#BA62EB
secondary
#CEEBBD
accent
#DA0C55
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA62EB

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

Preview Lab → · Contrast checker → · Palette generator →

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