#BA7FED#BA7FED

#BA7FED is a light, vivid violet. Relative luminance 0.317; OKLCH L 70.0% C 0.165 H 307.4°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#BA7FED
RGBrgb(186, 127, 237)
HSLhsl(272, 75%, 71%)
HSVhsv(272, 46%, 93%)
CMYKcmyk(21.5%, 46.4%, 0%, 7.1%)
CIE-LABlab(63.12, 43.16, -46.98)
CIE-LCHlch(63.12, 63.80, 312.57°)
OKLaboklab(69.98% 0.1003 -0.1312)
OKLCHoklch(69.98% 0.165 307.4)
XYZxyz(43.1221, 31.7327, 83.9577)
Luminance0.3173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FED #B2ED7F
analogous
#837FED #BA7FED #ED7FE9
triadic
#BA7FED #EDBA7F #7FEDBA
tetradic
#BA7FED #ED837F #B2ED7F #7FE9ED
square
#BA7FED #ED837F #B2ED7F #7FE9ED
split-complementary
#BA7FED #E9ED7F #7FED83
monochromatic
#7F1ED4 #9D49E5 #BA7FED #D7B5F5 #F1E4FB

Accessibility & contrast

On white

2.86
#BA7FED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#BA7FED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FED
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FED#FFFFFF#000000##000000
##BA7FED1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6396F1
Deuteranopia (green-blind)
#7399EA
Tritanopia (blue-blind)
#B391AB
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7fed;
/* rgb */ color: rgb(186, 127, 237);
/* oklch */ color: oklch(70.0% 0.165 307.4);
Tailwind
colors: {
  custom: {
    50: '#d1a5f3',
    500: '#ba7fed',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fed;
$custom-light: #d1a5f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fed",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 237
  },
  "hsl": {
    "h": 272.182,
    "s": 75.342,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6998,
    "c": 0.16517,
    "h": 307.4
  },
  "luminance": 0.31732
}

Semantic roles & 50–950 ramp

primary
#BA7FED
secondary
#E3F2D6
accent
#D80E6B
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7FED

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

Preview Lab → · Contrast checker → · Palette generator →

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