#BA8ECB#BA8ECB

#BA8ECB is a light, moderate purple. Relative luminance 0.341; OKLCH L 70.9% C 0.099 H 316.4°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#BA8ECB
RGBrgb(186, 142, 203)
HSLhsl(283, 37%, 68%)
HSVhsv(283, 30%, 80%)
CMYKcmyk(8.4%, 30%, 0%, 20.4%)
CIE-LABlab(65.04, 27.56, -25.08)
CIE-LCHlch(65.04, 37.26, 317.69°)
OKLaboklab(70.95% 0.0718 -0.0684)
OKLCHoklch(70.95% 0.099 316.4)
XYZxyz(40.7006, 34.0977, 60.9258)
Luminance0.3410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8ECB #9FCB8E
analogous
#9B8ECB #BA8ECB #CB8EBD
triadic
#BA8ECB #CBBA8E #8ECBBA
tetradic
#BA8ECB #CB9B8E #9FCB8E #8EBDCB
square
#BA8ECB #CB9B8E #9FCB8E #8EBDCB
split-complementary
#BA8ECB #BDCB8E #8ECB9B
monochromatic
#824698 #A064B8 #BA8ECB #D4B8DE #EDE2F2

Accessibility & contrast

On white

2.69
#BA8ECB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#BA8ECB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8ECB
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8ECB#FFFFFF#000000##000000
##BA8ECB1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#869BCD
Deuteranopia (green-blind)
#909FC9
Tritanopia (blue-blind)
#BA95A4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba8ecb;
/* rgb */ color: rgb(186, 142, 203);
/* oklch */ color: oklch(70.9% 0.099 316.4);
Tailwind
colors: {
  custom: {
    50: '#cfafdb',
    500: '#ba8ecb',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ecb;
$custom-light: #cfafdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ecb",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 203
  },
  "hsl": {
    "h": 283.279,
    "s": 36.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.70949,
    "c": 0.09921,
    "h": 316.4
  },
  "luminance": 0.34097
}

Semantic roles & 50–950 ramp

primary
#BA8ECB
secondary
#D6E4D1
accent
#B03658
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA8ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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