#BA9DEC#BA9DEC

#BA9DEC is a light, moderate violet. Relative luminance 0.406; OKLCH L 75.1% C 0.115 H 300.5°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#BA9DEC
RGBrgb(186, 157, 236)
HSLhsl(262, 68%, 77%)
HSVhsv(262, 33%, 93%)
CMYKcmyk(21.2%, 33.5%, 0%, 7.5%)
CIE-LABlab(69.90, 26.36, -35.82)
CIE-LCHlch(69.90, 44.47, 306.36°)
OKLaboklab(75.09% 0.0585 -0.0991)
OKLCHoklch(75.09% 0.115 300.5)
XYZxyz(47.4437, 40.6090, 84.6795)
Luminance0.4061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9DEC #CFEC9D
analogous
#9DA8EC #BA9DEC #E19DEC
triadic
#BA9DEC #ECBA9D #9DECBA
tetradic
#BA9DEC #EC9DA8 #CFEC9D #9DECE1
square
#BA9DEC #EC9DA8 #CFEC9D #9DECE1
split-complementary
#BA9DEC #ECE19D #A8EC9D
monochromatic
#7236D8 #966AE2 #BA9DEC #DED0F6 #EDE5FA

Accessibility & contrast

On white

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

On black

9.12
#BA9DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9DEC
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9DEC#FFFFFF#000000##000000
##BA9DEC1.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAAEF
Deuteranopia (green-blind)
#90AAEA
Tritanopia (blue-blind)
#B1A9BA
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ba9dec;
/* rgb */ color: rgb(186, 157, 236);
/* oklch */ color: oklch(75.1% 0.115 300.5);
Tailwind
colors: {
  custom: {
    50: '#d0baf2',
    500: '#ba9dec',
    950: '#000000',
  },
}
SCSS
$custom: #ba9dec;
$custom-light: #d0baf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9dec",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 236
  },
  "hsl": {
    "h": 262.025,
    "s": 67.521,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75089,
    "c": 0.11504,
    "h": 300.5
  },
  "luminance": 0.40609
}

Semantic roles & 50–950 ramp

primary
#BA9DEC
secondary
#E9F2D9
accent
#CF168B
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA9DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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