#BA7EE7#BA7EE7

#BA7EE7 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.5% C 0.160 H 309.2°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#BA7EE7
RGBrgb(186, 126, 231)
HSLhsl(274, 69%, 70%)
HSVhsv(274, 45%, 91%)
CMYKcmyk(19.5%, 45.5%, 0%, 9.4%)
CIE-LABlab(62.62, 42.36, -44.45)
CIE-LCHlch(62.62, 61.41, 313.62°)
OKLaboklab(69.51% 0.1009 -0.1238)
OKLCHoklch(69.51% 0.16 309.2)
XYZxyz(42.1316, 31.1309, 79.3752)
Luminance0.3113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EE7 #ABE77E
analogous
#867EE7 #BA7EE7 #E77EDF
triadic
#BA7EE7 #E7BA7E #7EE7BA
tetradic
#BA7EE7 #E7867E #ABE77E #7EDFE7
square
#BA7EE7 #E7867E #ABE77E #7EDFE7
split-complementary
#BA7EE7 #DFE77E #7EE786
monochromatic
#8125C6 #9E4ADD #BA7EE7 #D6B2F1 #F1E5FA

Accessibility & contrast

On white

2.91
#BA7EE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#BA7EE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EE7
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EE7#FFFFFF#000000##000000
##BA7EE71.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6595EB
Deuteranopia (green-blind)
#7598E4
Tritanopia (blue-blind)
#B48FA8
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7ee7;
/* rgb */ color: rgb(186, 126, 231);
/* oklch */ color: oklch(69.5% 0.160 309.2);
Tailwind
colors: {
  custom: {
    50: '#d1a5ef',
    500: '#ba7ee7',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ee7;
$custom-light: #d1a5ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ee7",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 231
  },
  "hsl": {
    "h": 274.286,
    "s": 68.627,
    "l": 70
  },
  "oklch": {
    "l": 0.6951,
    "c": 0.15973,
    "h": 309.2
  },
  "luminance": 0.3113
}

Semantic roles & 50–950 ramp

primary
#BA7EE7
secondary
#DEEFD2
accent
#D11565
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA7EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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