#8D40B3#8D40B3

#8D40B3 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.3% C 0.182 H 312.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8D40B3
RGBrgb(141, 64, 179)
HSLhsl(280, 47%, 48%)
HSVhsv(280, 64%, 70%)
CMYKcmyk(21.2%, 64.2%, 0%, 29.8%)
CIE-LABlab(42.13, 51.48, -47.60)
CIE-LCHlch(42.13, 70.11, 317.25°)
OKLaboklab(52.34% 0.1234 -0.134)
OKLCHoklch(52.34% 0.182 312.7)
XYZxyz(20.9531, 12.5848, 43.9644)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40B3 #66B340
analogous
#5440B3 #8D40B3 #B3409F
triadic
#8D40B3 #B38D40 #40B38D
tetradic
#8D40B3 #B35440 #66B340 #409FB3
square
#8D40B3 #B35440 #66B340 #409FB3
split-complementary
#8D40B3 #9FB340 #40B354
monochromatic
#462059 #693086 #8D40B3 #A967C9 #C294D9

Accessibility & contrast

On white

5.97
#8D40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8D40B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40B3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40B3#FFFFFF#000000##FFFFFF
##8D40B31.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075FB7
Deuteranopia (green-blind)
#3865B0
Tritanopia (blue-blind)
#895674
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d40b3;
/* rgb */ color: rgb(141, 64, 179);
/* oklch */ color: oklch(52.3% 0.182 312.7);
Tailwind
colors: {
  custom: {
    50: '#b27aca',
    500: '#8d40b3',
    950: '#000000',
  },
}
SCSS
$custom: #8d40b3;
$custom-light: #b27aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40b3",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 280.174,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.18215,
    "h": 312.7
  },
  "luminance": 0.12584
}

Semantic roles & 50–950 ramp

primary
#8D40B3
secondary
#9EC48A
accent
#D7517D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8D40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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