#BA8DF2#BA8DF2

#BA8DF2 is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.5% C 0.149 H 303.4°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#BA8DF2
RGBrgb(186, 141, 242)
HSLhsl(267, 80%, 75%)
HSVhsv(267, 42%, 95%)
CMYKcmyk(23.1%, 41.7%, 0%, 5.1%)
CIE-LABlab(66.44, 36.63, -44.51)
CIE-LCHlch(66.44, 57.64, 309.45°)
OKLaboklab(72.55% 0.082 -0.1241)
OKLCHoklch(72.55% 0.149 303.4)
XYZxyz(45.7982, 35.8997, 88.5038)
Luminance0.3590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DF2 #C5F28D
analogous
#8D92F2 #BA8DF2 #ED8DF2
triadic
#BA8DF2 #F2BA8D #8DF2BA
tetradic
#BA8DF2 #F28D92 #C5F28D #8DF2ED
square
#BA8DF2 #F28D92 #C5F28D #8DF2ED
split-complementary
#BA8DF2 #F2ED8D #92F28D
monochromatic
#781FE5 #9956EC #BA8DF2 #DBC4F8 #EEE4FC

Accessibility & contrast

On white

2.57
#BA8DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#BA8DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DF2
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DF2#FFFFFF#000000##000000
##BA8DF21.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A0F6
Deuteranopia (green-blind)
#7EA1EF
Tritanopia (blue-blind)
#B19EB4
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8df2;
/* rgb */ color: rgb(186, 141, 242);
/* oklch */ color: oklch(72.5% 0.149 303.4);
Tailwind
colors: {
  custom: {
    50: '#d0aff7',
    500: '#ba8df2',
    950: '#000000',
  },
}
SCSS
$custom: #ba8df2;
$custom-light: #d0aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8df2",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 266.733,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.7255,
    "c": 0.14869,
    "h": 303.4
  },
  "luminance": 0.359
}

Semantic roles & 50–950 ramp

primary
#BA8DF2
secondary
#E7F4D7
accent
#DC0A7E
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BA8DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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