#BA7BEF#BA7BEF

#BA7BEF is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.5% C 0.174 H 307.5°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#BA7BEF
RGBrgb(186, 123, 239)
HSLhsl(273, 78%, 71%)
HSVhsv(273, 49%, 94%)
CMYKcmyk(22.2%, 48.5%, 0%, 6.3%)
CIE-LABlab(62.37, 45.76, -49.28)
CIE-LCHlch(62.37, 67.25, 312.88°)
OKLaboklab(69.45% 0.106 -0.1379)
OKLCHoklch(69.45% 0.174 307.5)
XYZxyz(42.9095, 30.8375, 85.3363)
Luminance0.3084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BEF #B0EF7B
analogous
#807BEF #BA7BEF #EF7BEA
triadic
#BA7BEF #EFBA7B #7BEFBA
tetradic
#BA7BEF #EF807B #B0EF7B #7BEAEF
square
#BA7BEF #EF807B #B0EF7B #7BEAEF
split-complementary
#BA7BEF #EAEF7B #7BEF80
monochromatic
#801AD6 #9D44E8 #BA7BEF #D7B2F6 #F1E4FC

Accessibility & contrast

On white

2.93
#BA7BEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#BA7BEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BEF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BEF#FFFFFF#000000##000000
##BA7BEF1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C94F3
Deuteranopia (green-blind)
#6D97EC
Tritanopia (blue-blind)
#B28FAA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7bef;
/* rgb */ color: rgb(186, 123, 239);
/* oklch */ color: oklch(69.5% 0.174 307.5);
Tailwind
colors: {
  custom: {
    50: '#d1a3f5',
    500: '#ba7bef',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bef;
$custom-light: #d1a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bef",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 272.586,
    "s": 78.378,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69452,
    "c": 0.17388,
    "h": 307.5
  },
  "luminance": 0.30837
}

Semantic roles & 50–950 ramp

primary
#BA7BEF
secondary
#E2F2D3
accent
#DB0B6A
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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