#BA7EDD#BA7EDD

#BA7EDD is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.0% C 0.148 H 312.1°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#BA7EDD
RGBrgb(186, 126, 221)
HSLhsl(278, 58%, 68%)
HSVhsv(278, 43%, 87%)
CMYKcmyk(15.8%, 43%, 0%, 13.3%)
CIE-LABlab(62.15, 40.18, -39.62)
CIE-LCHlch(62.15, 56.43, 315.41°)
OKLaboklab(69.01% 0.0993 -0.1099)
OKLCHoklch(69.01% 0.148 312.1)
XYZxyz(40.7595, 30.5820, 72.1483)
Luminance0.3058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EDD #A1DD7E
analogous
#8A7EDD #BA7EDD #DD7ED0
triadic
#BA7EDD #DDBA7E #7EDDBA
tetradic
#BA7EDD #DD8A7E #A1DD7E #7ED0DD
square
#BA7EDD #DD8A7E #A1DD7E #7ED0DD
split-complementary
#BA7EDD #D0DD7E #7EDD8A
monochromatic
#822FB2 #A04ED0 #BA7EDD #D4AEEA #EEDFF7

Accessibility & contrast

On white

2.95
#BA7EDD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#BA7EDD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EDD
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EDD#FFFFFF#000000##000000
##BA7EDD1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B93E0
Deuteranopia (green-blind)
#7A98DA
Tritanopia (blue-blind)
#B78CA3
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7edd;
/* rgb */ color: rgb(186, 126, 221);
/* oklch */ color: oklch(69.0% 0.148 312.1);
Tailwind
colors: {
  custom: {
    50: '#d0a4e8',
    500: '#ba7edd',
    950: '#000000',
  },
}
SCSS
$custom: #ba7edd;
$custom-light: #d0a4e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7edd",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 221
  },
  "hsl": {
    "h": 277.895,
    "s": 58.282,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6901,
    "c": 0.14808,
    "h": 312.1
  },
  "luminance": 0.30581
}

Semantic roles & 50–950 ramp

primary
#BA7EDD
secondary
#D8EACD
accent
#C6205D
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA7EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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