#BA8EF2#BA8EF2

#BA8EF2 is a light, vivid violet. Relative luminance 0.362; OKLCH L 72.7% C 0.147 H 303.2°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#BA8EF2
RGBrgb(186, 142, 242)
HSLhsl(266, 79%, 75%)
HSVhsv(266, 41%, 95%)
CMYKcmyk(23.1%, 41.3%, 0%, 5.1%)
CIE-LABlab(66.67, 36.08, -44.15)
CIE-LCHlch(66.67, 57.02, 309.25°)
OKLaboklab(72.72% 0.0806 -0.123)
OKLCHoklch(72.72% 0.147 303.2)
XYZxyz(45.9463, 36.1960, 88.5532)
Luminance0.3620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EF2 #C6F28E
analogous
#8E94F2 #BA8EF2 #EC8EF2
triadic
#BA8EF2 #F2BA8E #8EF2BA
tetradic
#BA8EF2 #F28E94 #C6F28E #8EF2EC
square
#BA8EF2 #F28E94 #C6F28E #8EF2EC
split-complementary
#BA8EF2 #F2EC8E #94F28E
monochromatic
#7720E5 #9857EC #BA8EF2 #DCC5F8 #EEE4FC

Accessibility & contrast

On white

2.55
#BA8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#BA8EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EF2
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EF2#FFFFFF#000000##000000
##BA8EF21.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A1F6
Deuteranopia (green-blind)
#7FA2EF
Tritanopia (blue-blind)
#B19FB4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8ef2;
/* rgb */ color: rgb(186, 142, 242);
/* oklch */ color: oklch(72.7% 0.147 303.2);
Tailwind
colors: {
  custom: {
    50: '#d0aff7',
    500: '#ba8ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ef2;
$custom-light: #d0aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ef2",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 266.4,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.7272,
    "c": 0.14709,
    "h": 303.2
  },
  "luminance": 0.36196
}

Semantic roles & 50–950 ramp

primary
#BA8EF2
secondary
#E7F4D7
accent
#DC0A7F
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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