#BA62DC#BA62DC

#BA62DC is a light, vivid purple. Relative luminance 0.243; OKLCH L 64.7% C 0.192 H 315.7°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#BA62DC
RGBrgb(186, 98, 220)
HSLhsl(283, 64%, 62%)
HSVhsv(283, 55%, 86%)
CMYKcmyk(15.5%, 55.5%, 0%, 13.7%)
CIE-LABlab(56.43, 54.63, -48.08)
CIE-LCHlch(56.43, 72.78, 318.65°)
OKLaboklab(64.75% 0.1374 -0.1343)
OKLCHoklch(64.75% 0.192 315.7)
XYZxyz(37.5337, 24.3430, 70.4178)
Luminance0.2434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA62DC #84DC62
analogous
#7D62DC #BA62DC #DC62C1
triadic
#BA62DC #DCBA62 #62DCBA
tetradic
#BA62DC #DC7D62 #84DC62 #62C1DC
square
#BA62DC #DC7D62 #84DC62 #62C1DC
split-complementary
#BA62DC #C1DC62 #62DC7D
monochromatic
#7D24A0 #A430D1 #BA62DC #D094E7 #E6C6F2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA62DC#FFFFFF#000000##000000
##BA62DC1.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)
#4382E0
Deuteranopia (green-blind)
#628AD9
Tritanopia (blue-blind)
#B87696
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba62dc;
/* rgb */ color: rgb(186, 98, 220);
/* oklch */ color: oklch(64.7% 0.192 315.7);
Tailwind
colors: {
  custom: {
    50: '#d192e7',
    500: '#ba62dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba62dc;
$custom-light: #d192e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba62dc",
  "rgb": {
    "r": 186,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 283.279,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64747,
    "c": 0.19207,
    "h": 315.7
  },
  "luminance": 0.24342
}

Semantic roles & 50–950 ramp

primary
#BA62DC
secondary
#C3E3B7
accent
#CB1A4C
background
#FDF9FE
surface
#FAF1FC
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA62DC

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

Preview Lab → · Contrast checker → · Palette generator →

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