#8D40B2#8D40B2

#8D40B2 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.3% C 0.181 H 313.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8D40B2
RGBrgb(141, 64, 178)
HSLhsl(281, 47%, 47%)
HSVhsv(281, 64%, 70%)
CMYKcmyk(20.8%, 64%, 0%, 30.2%)
CIE-LABlab(42.07, 51.27, -47.11)
CIE-LCHlch(42.07, 69.62, 317.42°)
OKLaboklab(52.28% 0.1235 -0.1325)
OKLCHoklch(52.28% 0.181 313)
XYZxyz(20.8524, 12.5444, 43.4337)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40B2 #65B240
analogous
#5440B2 #8D40B2 #B2409E
triadic
#8D40B2 #B28D40 #40B28D
tetradic
#8D40B2 #B25440 #65B240 #409EB2
square
#8D40B2 #B25440 #65B240 #409EB2
split-complementary
#8D40B2 #9EB240 #40B254
monochromatic
#462058 #693085 #8D40B2 #A967C8 #C294D8

Accessibility & contrast

On white

5.98
#8D40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8D40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40B2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40B2#FFFFFF#000000##FFFFFF
##8D40B21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5FB5
Deuteranopia (green-blind)
#3965AF
Tritanopia (blue-blind)
#895673
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d40b2;
/* rgb */ color: rgb(141, 64, 178);
/* oklch */ color: oklch(52.3% 0.181 313.0);
Tailwind
colors: {
  custom: {
    50: '#b27aca',
    500: '#8d40b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d40b2;
$custom-light: #b27aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40b2",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 280.526,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52277,
    "c": 0.18112,
    "h": 313
  },
  "luminance": 0.12544
}

Semantic roles & 50–950 ramp

primary
#8D40B2
secondary
#9DC48A
accent
#D7517C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8D40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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