#BA7CEB#BA7CEB

#BA7CEB is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.4% C 0.168 H 308.4°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#BA7CEB
RGBrgb(186, 124, 235)
HSLhsl(274, 74%, 70%)
HSVhsv(274, 47%, 92%)
CMYKcmyk(20.9%, 47.2%, 0%, 7.8%)
CIE-LABlab(62.38, 44.33, -47.04)
CIE-LCHlch(62.38, 64.64, 313.30°)
OKLaboklab(69.4% 0.1041 -0.1314)
OKLCHoklch(69.4% 0.168 308.4)
XYZxyz(42.4498, 30.8531, 82.3001)
Luminance0.3085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CEB #ADEB7C
analogous
#837CEB #BA7CEB #EB7CE4
triadic
#BA7CEB #EBBA7C #7CEBBA
tetradic
#BA7CEB #EB837C #ADEB7C #7CE4EB
square
#BA7CEB #EB837C #ADEB7C #7CE4EB
split-complementary
#BA7CEB #E4EB7C #7CEB83
monochromatic
#801FCD #9E47E3 #BA7CEB #D6B1F3 #F1E4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA7CEB#FFFFFF#000000##000000
##BA7CEB1.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)
#6094EF
Deuteranopia (green-blind)
#7198E8
Tritanopia (blue-blind)
#B38EA8
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7ceb;
/* rgb */ color: rgb(186, 124, 235);
/* oklch */ color: oklch(69.4% 0.168 308.4);
Tailwind
colors: {
  custom: {
    50: '#d1a3f2',
    500: '#ba7ceb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ceb;
$custom-light: #d1a3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ceb",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 273.514,
    "s": 73.51,
    "l": 70.392
  },
  "oklch": {
    "l": 0.69398,
    "c": 0.16763,
    "h": 308.4
  },
  "luminance": 0.30853
}

Semantic roles & 50–950 ramp

primary
#BA7CEB
secondary
#E0F1D2
accent
#D61067
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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