#BA7EE2#BA7EE2

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

Color values

HEX#BA7EE2
RGBrgb(186, 126, 226)
HSLhsl(276, 63%, 69%)
HSVhsv(276, 44%, 89%)
CMYKcmyk(17.7%, 44.2%, 0%, 11.4%)
CIE-LABlab(62.38, 41.27, -42.04)
CIE-LCHlch(62.38, 58.91, 314.47°)
OKLaboklab(69.26% 0.1001 -0.1169)
OKLCHoklch(69.26% 0.154 310.6)
XYZxyz(41.4355, 30.8525, 75.7091)
Luminance0.3085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EE2 #A6E27E
analogous
#887EE2 #BA7EE2 #E27ED8
triadic
#BA7EE2 #E2BA7E #7EE2BA
tetradic
#BA7EE2 #E2887E #A6E27E #7ED8E2
square
#BA7EE2 #E2887E #A6E27E #7ED8E2
split-complementary
#BA7EE2 #D8E27E #7EE288
monochromatic
#812ABB #9F4CD7 #BA7EE2 #D5B0ED #EFE2F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA7EE2#FFFFFF#000000##000000
##BA7EE21.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)
#6894E6
Deuteranopia (green-blind)
#7898DF
Tritanopia (blue-blind)
#B58DA5
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7ee2;
/* rgb */ color: rgb(186, 126, 226);
/* oklch */ color: oklch(69.3% 0.154 310.6);
Tailwind
colors: {
  custom: {
    50: '#d0a4eb',
    500: '#ba7ee2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ee2;
$custom-light: #d0a4eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ee2",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 226
  },
  "hsl": {
    "h": 276,
    "s": 63.291,
    "l": 69.02
  },
  "oklch": {
    "l": 0.69257,
    "c": 0.15389,
    "h": 310.6
  },
  "luminance": 0.30852
}

Semantic roles & 50–950 ramp

primary
#BA7EE2
secondary
#DBEDCF
accent
#CB1A61
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA7EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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