#8D38B2#8D38B2

#8D38B2 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.3% C 0.192 H 313.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8D38B2
RGBrgb(141, 56, 178)
HSLhsl(282, 52%, 46%)
HSVhsv(282, 69%, 70%)
CMYKcmyk(20.8%, 68.5%, 0%, 30.2%)
CIE-LABlab(40.75, 54.94, -49.23)
CIE-LCHlch(40.75, 73.77, 318.13°)
OKLaboklab(51.33% 0.1327 -0.1387)
OKLCHoklch(51.33% 0.192 313.7)
XYZxyz(20.4332, 11.7061, 43.2940)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38B2 #5DB238
analogous
#5038B2 #8D38B2 #B2389A
triadic
#8D38B2 #B28D38 #38B28D
tetradic
#8D38B2 #B25038 #5DB238 #389AB2
square
#8D38B2 #B25038 #5DB238 #389AB2
split-complementary
#8D38B2 #9AB238 #38B250
monochromatic
#431B55 #682983 #8D38B2 #AA5CCC #C28ADA

Accessibility & contrast

On white

6.29
#8D38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8D38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38B2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38B2#FFFFFF#000000##FFFFFF
##8D38B21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#3162AF
Tritanopia (blue-blind)
#895171
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8d38b2;
/* rgb */ color: rgb(141, 56, 178);
/* oklch */ color: oklch(51.3% 0.192 313.7);
Tailwind
colors: {
  custom: {
    50: '#b275ca',
    500: '#8d38b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d38b2;
$custom-light: #b275ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38b2",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 281.803,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51325,
    "c": 0.19195,
    "h": 313.7
  },
  "luminance": 0.11705
}

Semantic roles & 50–950 ramp

primary
#8D38B2
secondary
#96C581
accent
#DC4C78
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8D38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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