#8D38C6#8D38C6

#8D38C6 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.212 H 308.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8D38C6
RGBrgb(141, 56, 198)
HSLhsl(276, 56%, 50%)
HSVhsv(276, 72%, 78%)
CMYKcmyk(28.8%, 71.7%, 0%, 22.4%)
CIE-LABlab(42.11, 59.26, -58.76)
CIE-LCHlch(42.11, 83.45, 315.24°)
OKLaboklab(52.73% 0.1303 -0.1667)
OKLCHoklch(52.73% 0.212 308)
XYZxyz(22.5896, 12.5686, 54.6511)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38C6 #71C638
analogous
#4638C6 #8D38C6 #C638B8
triadic
#8D38C6 #C68D38 #38C68D
tetradic
#8D38C6 #C64638 #71C638 #38B8C6
square
#8D38C6 #C64638 #71C638 #38B8C6
split-complementary
#8D38C6 #B8C638 #38C646
monochromatic
#491D67 #6B2B96 #8D38C6 #A867D4 #C497E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D38C6#FFFFFF#000000##FFFFFF
##8D38C61.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)
#0060CA
Deuteranopia (green-blind)
#0A64C3
Tritanopia (blue-blind)
#84597C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d38c6;
/* rgb */ color: rgb(141, 56, 198);
/* oklch */ color: oklch(52.7% 0.212 308.0);
Tailwind
colors: {
  custom: {
    50: '#b376d8',
    500: '#8d38c6',
    950: '#000000',
  },
}
SCSS
$custom: #8d38c6;
$custom-light: #b376d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38c6",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 275.915,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52727,
    "c": 0.21157,
    "h": 308
  },
  "luminance": 0.12568
}

Semantic roles & 50–950 ramp

primary
#8D38C6
secondary
#A7CD8D
accent
#DF4985
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120915
muted
#817B83

Preview Lab

Preview with #8D38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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