#BA85EE#BA85EE

#BA85EE is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.0% C 0.157 H 306.1°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#BA85EE
RGBrgb(186, 133, 238)
HSLhsl(270, 76%, 73%)
HSVhsv(270, 44%, 93%)
CMYKcmyk(21.8%, 44.1%, 0%, 6.7%)
CIE-LABlab(64.47, 40.12, -45.40)
CIE-LCHlch(64.47, 60.59, 311.46°)
OKLaboklab(71.01% 0.0923 -0.1266)
OKLCHoklch(71.01% 0.157 306.1)
XYZxyz(44.0667, 33.3875, 84.9953)
Luminance0.3339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85EE #B9EE85
analogous
#8585EE #BA85EE #EE85ED
triadic
#BA85EE #EEBA85 #85EEBA
tetradic
#BA85EE #EE8585 #B9EE85 #85EDEE
square
#BA85EE #EE8585 #B9EE85 #85EDEE
split-complementary
#BA85EE #EDEE85 #85EE85
monochromatic
#7D1EDA #9C4FE7 #BA85EE #D8BBF5 #F0E4FB

Accessibility & contrast

On white

2.74
#BA85EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#BA85EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85EE
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85EE#FFFFFF#000000##000000
##BA85EE1.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF2
Deuteranopia (green-blind)
#789DEB
Tritanopia (blue-blind)
#B296AE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba85ee;
/* rgb */ color: rgb(186, 133, 238);
/* oklch */ color: oklch(71.0% 0.157 306.1);
Tailwind
colors: {
  custom: {
    50: '#d1a9f4',
    500: '#ba85ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba85ee;
$custom-light: #d1a9f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85ee",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 238
  },
  "hsl": {
    "h": 270.286,
    "s": 75.54,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71008,
    "c": 0.15669,
    "h": 306.1
  },
  "luminance": 0.33387
}

Semantic roles & 50–950 ramp

primary
#BA85EE
secondary
#E5F3D8
accent
#D80E72
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA85EE

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

Preview Lab → · Contrast checker → · Palette generator →

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