#BA7BE8#BA7BE8

#BA7BE8 is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.1% C 0.166 H 309.4°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#BA7BE8
RGBrgb(186, 123, 232)
HSLhsl(275, 70%, 70%)
HSVhsv(275, 47%, 91%)
CMYKcmyk(19.8%, 47%, 0%, 9%)
CIE-LABlab(62.02, 44.21, -45.94)
CIE-LCHlch(62.02, 63.76, 313.90°)
OKLaboklab(69.08% 0.1051 -0.1282)
OKLCHoklch(69.08% 0.166 309.4)
XYZxyz(41.8954, 30.4318, 79.9952)
Luminance0.3043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BE8 #A9E87B
analogous
#847BE8 #BA7BE8 #E87BE0
triadic
#BA7BE8 #E8BA7B #7BE8BA
tetradic
#BA7BE8 #E8847B #A9E87B #7BE0E8
square
#BA7BE8 #E8847B #A9E87B #7BE0E8
split-complementary
#BA7BE8 #E0E87B #7BE884
monochromatic
#8123C6 #9F47DF #BA7BE8 #D5AFF1 #F0E3FA

Accessibility & contrast

On white

2.96
#BA7BE8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#BA7BE8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BE8
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BE8#FFFFFF#000000##000000
##BA7BE81.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6093EC
Deuteranopia (green-blind)
#7297E5
Tritanopia (blue-blind)
#B48DA7
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7be8;
/* rgb */ color: rgb(186, 123, 232);
/* oklch */ color: oklch(69.1% 0.166 309.4);
Tailwind
colors: {
  custom: {
    50: '#d1a3f0',
    500: '#ba7be8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7be8;
$custom-light: #d1a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7be8",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 232
  },
  "hsl": {
    "h": 274.679,
    "s": 70.323,
    "l": 69.608
  },
  "oklch": {
    "l": 0.69083,
    "c": 0.16576,
    "h": 309.4
  },
  "luminance": 0.30431
}

Semantic roles & 50–950 ramp

primary
#BA7BE8
secondary
#DDEFD0
accent
#D21364
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA7BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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