#BA8EF7#BA8EF7

#BA8EF7 is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.0% C 0.153 H 302.1°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#BA8EF7
RGBrgb(186, 142, 247)
HSLhsl(265, 87%, 76%)
HSVhsv(265, 43%, 97%)
CMYKcmyk(24.7%, 42.5%, 0%, 3.1%)
CIE-LABlab(66.90, 37.24, -46.53)
CIE-LCHlch(66.90, 59.59, 308.67°)
OKLaboklab(72.97% 0.0814 -0.1299)
OKLCHoklch(72.97% 0.153 302.1)
XYZxyz(46.7075, 36.5005, 92.5623)
Luminance0.3650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EF7 #CBF78E
analogous
#8E97F7 #BA8EF7 #EF8EF7
triadic
#BA8EF7 #F7BA8E #8EF7BA
tetradic
#BA8EF7 #F78E97 #CBF78E #8EF7EF
square
#BA8EF7 #F78E97 #CBF78E #8EF7EF
split-complementary
#BA8EF7 #F7EF8E #97F78E
monochromatic
#741CEF #9755F3 #BA8EF7 #DDC7FB #EEE2FD

Accessibility & contrast

On white

2.53
#BA8EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#BA8EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EF7
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EF7#FFFFFF#000000##000000
##BA8EF71.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A2FB
Deuteranopia (green-blind)
#7CA2F4
Tritanopia (blue-blind)
#AFA0B7
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba8ef7;
/* rgb */ color: rgb(186, 142, 247);
/* oklch */ color: oklch(73.0% 0.153 302.1);
Tailwind
colors: {
  custom: {
    50: '#d1affa',
    500: '#ba8ef7',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ef7;
$custom-light: #d1affa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ef7",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 265.143,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7297,
    "c": 0.15334,
    "h": 302.1
  },
  "luminance": 0.36501
}

Semantic roles & 50–950 ramp

primary
#BA8EF7
secondary
#E8F5D6
accent
#E30285
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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