#BA9DEE#BA9DEE

#BA9DEE is a light, moderate violet. Relative luminance 0.407; OKLCH L 75.2% C 0.118 H 300.0°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#BA9DEE
RGBrgb(186, 157, 238)
HSLhsl(261, 70%, 77%)
HSVhsv(261, 34%, 93%)
CMYKcmyk(21.8%, 34%, 0%, 6.7%)
CIE-LABlab(69.98, 26.82, -36.78)
CIE-LCHlch(69.98, 45.52, 306.10°)
OKLaboklab(75.18% 0.0589 -0.1018)
OKLCHoklch(75.18% 0.118 300)
XYZxyz(47.7359, 40.7259, 86.2184)
Luminance0.4073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9DEE #D1EE9D
analogous
#9DA9EE #BA9DEE #E29DEE
triadic
#BA9DEE #EEBA9D #9DEEBA
tetradic
#BA9DEE #EE9DA9 #D1EE9D #9DEEE2
square
#BA9DEE #EE9DA9 #D1EE9D #9DEEE2
split-complementary
#BA9DEE #EEE29D #A9EE9D
monochromatic
#7135DC #9569E5 #BA9DEE #DFD1F7 #EDE5FA

Accessibility & contrast

On white

2.30
#BA9DEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#BA9DEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9DEE
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9DEE#FFFFFF#000000##000000
##BA9DEE1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AABF1
Deuteranopia (green-blind)
#8FABEC
Tritanopia (blue-blind)
#B1AABB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ba9dee;
/* rgb */ color: rgb(186, 157, 238);
/* oklch */ color: oklch(75.2% 0.118 300.0);
Tailwind
colors: {
  custom: {
    50: '#d0baf4',
    500: '#ba9dee',
    950: '#000000',
  },
}
SCSS
$custom: #ba9dee;
$custom-light: #d0baf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9dee",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 238
  },
  "hsl": {
    "h": 261.481,
    "s": 70.435,
    "l": 77.451
  },
  "oklch": {
    "l": 0.75179,
    "c": 0.11766,
    "h": 300
  },
  "luminance": 0.40726
}

Semantic roles & 50–950 ramp

primary
#BA9DEE
secondary
#E9F2D9
accent
#D2138E
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA9DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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