#8D5ECB#8D5ECB

#8D5ECB is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.2% C 0.165 H 301.4°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8D5ECB
RGBrgb(141, 94, 203)
HSLhsl(266, 51%, 58%)
HSVhsv(266, 54%, 80%)
CMYKcmyk(30.5%, 53.7%, 0%, 20.4%)
CIE-LABlab(49.47, 41.39, -49.80)
CIE-LCHlch(49.47, 64.75, 309.73°)
OKLaboklab(58.17% 0.0857 -0.1405)
OKLCHoklch(58.17% 0.165 301.4)
XYZxyz(25.7642, 17.9798, 58.6014)
Luminance0.1798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5ECB #9CCB5E
analogous
#5E65CB #8D5ECB #C45ECB
triadic
#8D5ECB #CB8D5E #5ECB8D
tetradic
#8D5ECB #CB5E65 #9CCB5E #5ECBC4
square
#8D5ECB #CB5E65 #9CCB5E #5ECBC4
split-complementary
#8D5ECB #CBC45E #65CB5E
monochromatic
#512B84 #6E3AB2 #8D5ECB #AE8CDA #CFBBE9

Accessibility & contrast

On white

4.57
#8D5ECB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8D5ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5ECB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5ECB#FFFFFF#000000##000000
##8D5ECB1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3575CF
Deuteranopia (green-blind)
#4475C8
Tritanopia (blue-blind)
#81738B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8d5ecb;
/* rgb */ color: rgb(141, 94, 203);
/* oklch */ color: oklch(58.2% 0.165 301.4);
Tailwind
colors: {
  custom: {
    50: '#b18ddb',
    500: '#8d5ecb',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ecb;
$custom-light: #b18ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ecb",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 203
  },
  "hsl": {
    "h": 265.872,
    "s": 51.174,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58171,
    "c": 0.16459,
    "h": 301.4
  },
  "luminance": 0.1798
}

Semantic roles & 50–950 ramp

primary
#8D5ECB
secondary
#C5D8AD
accent
#DB4D9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8D5ECB

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

Preview Lab → · Contrast checker → · Palette generator →

#8D5ECB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva