#BA9ECD#BA9ECD

#BA9ECD is a light, moderate violet. Relative luminance 0.393; OKLCH L 74.0% C 0.073 H 311.4°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#BA9ECD
RGBrgb(186, 158, 205)
HSLhsl(276, 32%, 71%)
HSVhsv(276, 23%, 80%)
CMYKcmyk(9.3%, 22.9%, 0%, 19.6%)
CIE-LABlab(68.97, 19.06, -20.19)
CIE-LCHlch(68.97, 27.77, 313.34°)
OKLaboklab(73.99% 0.0484 -0.0548)
OKLCHoklch(73.99% 0.073 311.4)
XYZxyz(43.4941, 39.3010, 63.0403)
Luminance0.3930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9ECD #B1CD9E
analogous
#A29ECD #BA9ECD #CD9EC8
triadic
#BA9ECD #CDBA9E #9ECDBA
tetradic
#BA9ECD #CDA29E #B1CD9E #9EC8CD
square
#BA9ECD #CDA29E #B1CD9E #9EC8CD
split-complementary
#BA9ECD #C8CD9E #9ECDA2
monochromatic
#80529F #9D76B8 #BA9ECD #D7C6E2 #F1EBF5

Accessibility & contrast

On white

2.37
#BA9ECD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#BA9ECD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9ECD
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9ECD#FFFFFF#000000##000000
##BA9ECD1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A7CF
Deuteranopia (green-blind)
#9DA9CB
Tritanopia (blue-blind)
#B8A4AE
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ba9ecd;
/* rgb */ color: rgb(186, 158, 205);
/* oklch */ color: oklch(74.0% 0.073 311.4);
Tailwind
colors: {
  custom: {
    50: '#cfbadc',
    500: '#ba9ecd',
    950: '#000000',
  },
}
SCSS
$custom: #ba9ecd;
$custom-light: #cfbadc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9ecd",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 205
  },
  "hsl": {
    "h": 275.745,
    "s": 31.973,
    "l": 71.176
  },
  "oklch": {
    "l": 0.73986,
    "c": 0.07316,
    "h": 311.4
  },
  "luminance": 0.39301
}

Semantic roles & 50–950 ramp

primary
#BA9ECD
secondary
#E2EADD
accent
#AB3B68
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#141115
muted
#828083

Preview Lab

Preview with #BA9ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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