#BA62F8#BA62F8

#BA62F8 is a light, highly saturated violet. Relative luminance 0.260; OKLCH L 66.4% C 0.221 H 308.6°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#BA62F8
RGBrgb(186, 98, 248)
HSLhsl(275, 91%, 68%)
HSVhsv(275, 60%, 97%)
CMYKcmyk(25%, 60.5%, 0%, 2.7%)
CIE-LABlab(57.99, 60.56, -61.24)
CIE-LCHlch(57.99, 86.13, 314.68°)
OKLaboklab(66.39% 0.1379 -0.1727)
OKLCHoklch(66.39% 0.221 308.6)
XYZxyz(41.5573, 25.9524, 91.6088)
Luminance0.2595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA62F8 #A0F862
analogous
#6F62F8 #BA62F8 #F862EB
triadic
#BA62F8 #F8BA62 #62F8BA
tetradic
#BA62F8 #F86F62 #A0F862 #62EBF8
square
#BA62F8 #F86F62 #A0F862 #62EBF8
split-complementary
#BA62F8 #EBF862 #62F86F
monochromatic
#820AD6 #A027F5 #BA62F8 #D49DFB #EDD7FD

Accessibility & contrast

On white

3.39
#BA62F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#BA62F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA62F8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA62F8#FFFFFF#000000##000000
##BA62F81.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B88FD
Deuteranopia (green-blind)
#4C8CF5
Tritanopia (blue-blind)
#B17FA4
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba62f8;
/* rgb */ color: rgb(186, 98, 248);
/* oklch */ color: oklch(66.4% 0.221 308.6);
Tailwind
colors: {
  custom: {
    50: '#d393fb',
    500: '#ba62f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba62f8;
$custom-light: #d393fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba62f8",
  "rgb": {
    "r": 186,
    "g": 98,
    "b": 248
  },
  "hsl": {
    "h": 275.2,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66391,
    "c": 0.22101,
    "h": 308.6
  },
  "luminance": 0.25952
}

Semantic roles & 50–950 ramp

primary
#BA62F8
secondary
#D7F2C4
accent
#E6005F
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA62F8

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

Preview Lab → · Contrast checker → · Palette generator →

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