#8D38B4#8D38B4

#8D38B4 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.5% C 0.194 H 313.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8D38B4
RGBrgb(141, 56, 180)
HSLhsl(281, 53%, 46%)
HSVhsv(281, 69%, 71%)
CMYKcmyk(21.7%, 68.9%, 0%, 29.4%)
CIE-LABlab(40.88, 55.36, -50.20)
CIE-LCHlch(40.88, 74.73, 317.80°)
OKLaboklab(51.46% 0.1325 -0.1415)
OKLCHoklch(51.46% 0.194 313.1)
XYZxyz(20.6355, 11.7870, 44.3593)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38B4 #5FB438
analogous
#4F38B4 #8D38B4 #B4389D
triadic
#8D38B4 #B48D38 #38B48D
tetradic
#8D38B4 #B44F38 #5FB438 #389DB4
square
#8D38B4 #B44F38 #5FB438 #389DB4
split-complementary
#8D38B4 #9DB438 #38B44F
monochromatic
#441B57 #682985 #8D38B4 #A95DCD #C28BDB

Accessibility & contrast

On white

6.26
#8D38B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8D38B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38B4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38B4#FFFFFF#000000##FFFFFF
##8D38B41.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#2E62B1
Tritanopia (blue-blind)
#895172
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8d38b4;
/* rgb */ color: rgb(141, 56, 180);
/* oklch */ color: oklch(51.5% 0.194 313.1);
Tailwind
colors: {
  custom: {
    50: '#b275cb',
    500: '#8d38b4',
    950: '#000000',
  },
}
SCSS
$custom: #8d38b4;
$custom-light: #b275cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38b4",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 281.129,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5146,
    "c": 0.1939,
    "h": 313.1
  },
  "luminance": 0.11786
}

Semantic roles & 50–950 ramp

primary
#8D38B4
secondary
#97C582
accent
#DC4C79
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8D38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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