#BA7EDE#BA7EDE

#BA7EDE is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.1% C 0.149 H 311.8°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#BA7EDE
RGBrgb(186, 126, 222)
HSLhsl(278, 59%, 68%)
HSVhsv(278, 43%, 87%)
CMYKcmyk(16.2%, 43.2%, 0%, 12.9%)
CIE-LABlab(62.20, 40.40, -40.10)
CIE-LCHlch(62.20, 56.92, 315.21°)
OKLaboklab(69.06% 0.0995 -0.1113)
OKLCHoklch(69.06% 0.149 311.8)
XYZxyz(40.8931, 30.6355, 72.8521)
Luminance0.3064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EDE #A2DE7E
analogous
#8A7EDE #BA7EDE #DE7ED2
triadic
#BA7EDE #DEBA7E #7EDEBA
tetradic
#BA7EDE #DE8A7E #A2DE7E #7ED2DE
square
#BA7EDE #DE8A7E #A2DE7E #7ED2DE
split-complementary
#BA7EDE #D2DE7E #7EDE8A
monochromatic
#822EB4 #A04DD2 #BA7EDE #D4AFEA #EEDFF7

Accessibility & contrast

On white

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

On black

7.13
#BA7EDE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EDE
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EDE#FFFFFF#000000##000000
##BA7EDE1.002.957.137.13
#FFFFFF2.951.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A93E1
Deuteranopia (green-blind)
#7A98DB
Tritanopia (blue-blind)
#B68CA3
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7ede;
/* rgb */ color: rgb(186, 126, 222);
/* oklch */ color: oklch(69.1% 0.149 311.8);
Tailwind
colors: {
  custom: {
    50: '#d0a4e8',
    500: '#ba7ede',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ede;
$custom-light: #d0a4e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ede",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 222
  },
  "hsl": {
    "h": 277.5,
    "s": 59.259,
    "l": 68.235
  },
  "oklch": {
    "l": 0.69059,
    "c": 0.14924,
    "h": 311.8
  },
  "luminance": 0.30635
}

Semantic roles & 50–950 ramp

primary
#BA7EDE
secondary
#D8EACD
accent
#C71F5E
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA7EDE

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

Preview Lab → · Contrast checker → · Palette generator →

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