#BA8AEC#BA8AEC

#BA8AEC is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.7% C 0.146 H 305.6°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#BA8AEC
RGBrgb(186, 138, 236)
HSLhsl(269, 72%, 73%)
HSVhsv(269, 42%, 93%)
CMYKcmyk(21.2%, 41.5%, 0%, 7.5%)
CIE-LABlab(65.49, 36.92, -42.70)
CIE-LCHlch(65.49, 56.44, 310.85°)
OKLaboklab(71.74% 0.0851 -0.1188)
OKLCHoklch(71.74% 0.146 305.6)
XYZxyz(44.4754, 34.6725, 83.6900)
Luminance0.3467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8AEC #BCEC8A
analogous
#8A8BEC #BA8AEC #EB8AEC
triadic
#BA8AEC #ECBA8A #8AECBA
tetradic
#BA8AEC #EC8A8B #BCEC8A #8AECEB
square
#BA8AEC #EC8A8B #BCEC8A #8AECEB
split-complementary
#BA8AEC #ECEB8A #8BEC8A
monochromatic
#7C23D8 #9B55E3 #BA8AEC #D9BFF5 #EFE5FB

Accessibility & contrast

On white

2.65
#BA8AEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#BA8AEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8AEC
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8AEC#FFFFFF#000000##000000
##BA8AEC1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#739DF0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#B29AB0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba8aec;
/* rgb */ color: rgb(186, 138, 236);
/* oklch */ color: oklch(71.7% 0.146 305.6);
Tailwind
colors: {
  custom: {
    50: '#d0adf2',
    500: '#ba8aec',
    950: '#000000',
  },
}
SCSS
$custom: #ba8aec;
$custom-light: #d0adf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8aec",
  "rgb": {
    "r": 186,
    "g": 138,
    "b": 236
  },
  "hsl": {
    "h": 269.388,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71744,
    "c": 0.14613,
    "h": 305.6
  },
  "luminance": 0.34672
}

Semantic roles & 50–950 ramp

primary
#BA8AEC
secondary
#E6F2D9
accent
#D41175
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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