#BA8ECD#BA8ECD

#BA8ECD is a light, moderate purple. Relative luminance 0.342; OKLCH L 71.0% C 0.102 H 315.4°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#BA8ECD
RGBrgb(186, 142, 205)
HSLhsl(282, 39%, 68%)
HSVhsv(282, 31%, 80%)
CMYKcmyk(9.3%, 30.7%, 0%, 19.6%)
CIE-LABlab(65.12, 27.97, -26.08)
CIE-LCHlch(65.12, 38.25, 317.00°)
OKLaboklab(71.03% 0.0724 -0.0713)
OKLCHoklch(71.03% 0.102 315.4)
XYZxyz(40.9405, 34.1936, 62.1891)
Luminance0.3419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8ECD #A1CD8E
analogous
#9A8ECD #BA8ECD #CD8EC0
triadic
#BA8ECD #CDBA8E #8ECDBA
tetradic
#BA8ECD #CD9A8E #A1CD8E #8EC0CD
square
#BA8ECD #CD9A8E #A1CD8E #8EC0CD
split-complementary
#BA8ECD #C0CD8E #8ECD9A
monochromatic
#82459C #A064BA #BA8ECD #D4B8E0 #EEE3F3

Accessibility & contrast

On white

2.68
#BA8ECD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#BA8ECD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8ECD
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8ECD#FFFFFF#000000##000000
##BA8ECD1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#859BCF
Deuteranopia (green-blind)
#8F9FCB
Tritanopia (blue-blind)
#B996A5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba8ecd;
/* rgb */ color: rgb(186, 142, 205);
/* oklch */ color: oklch(71.0% 0.102 315.4);
Tailwind
colors: {
  custom: {
    50: '#cfafdc',
    500: '#ba8ecd',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ecd;
$custom-light: #cfafdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ecd",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 205
  },
  "hsl": {
    "h": 281.905,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.71032,
    "c": 0.10156,
    "h": 315.4
  },
  "luminance": 0.34193
}

Semantic roles & 50–950 ramp

primary
#BA8ECD
secondary
#D8E5D2
accent
#B2345A
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA8ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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