#BA62F2#BA62F2

#BA62F2 is a light, highly saturated violet. Relative luminance 0.256; OKLCH L 66.0% C 0.215 H 310.0°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#BA62F2
RGBrgb(186, 98, 242)
HSLhsl(277, 85%, 67%)
HSVhsv(277, 60%, 95%)
CMYKcmyk(23.1%, 59.5%, 0%, 5.1%)
CIE-LABlab(57.64, 59.26, -58.47)
CIE-LCHlch(57.64, 83.25, 315.39°)
OKLaboklab(66.02% 0.138 -0.1646)
OKLCHoklch(66.02% 0.215 310)
XYZxyz(40.6413, 25.5860, 86.7848)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA62F2 #9AF262
analogous
#7262F2 #BA62F2 #F262E2
triadic
#BA62F2 #F2BA62 #62F2BA
tetradic
#BA62F2 #F27262 #9AF262 #62E2F2
square
#BA62F2 #F27262 #9AF262 #62E2F2
split-complementary
#BA62F2 #E2F262 #62F272
monochromatic
#8111C9 #A129ED #BA62F2 #D39BF7 #ECD3FB

Accessibility & contrast

On white

3.43
#BA62F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#BA62F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA62F2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA62F2#FFFFFF#000000##000000
##BA62F21.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2887F7
Deuteranopia (green-blind)
#518CEF
Tritanopia (blue-blind)
#B37DA1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba62f2;
/* rgb */ color: rgb(186, 98, 242);
/* oklch */ color: oklch(66.0% 0.215 310.0);
Tailwind
colors: {
  custom: {
    50: '#d293f7',
    500: '#ba62f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba62f2;
$custom-light: #d293f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba62f2",
  "rgb": {
    "r": 186,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 276.667,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66024,
    "c": 0.21477,
    "h": 310
  },
  "luminance": 0.25585
}

Semantic roles & 50–950 ramp

primary
#BA62F2
secondary
#D3EFC1
accent
#E1045A
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA62F2

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

Preview Lab → · Contrast checker → · Palette generator →

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