#8D38C5#8D38C5

#8D38C5 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.7% C 0.211 H 308.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8D38C5
RGBrgb(141, 56, 197)
HSLhsl(276, 56%, 50%)
HSVhsv(276, 72%, 77%)
CMYKcmyk(28.4%, 71.6%, 0%, 22.7%)
CIE-LABlab(42.03, 59.04, -58.29)
CIE-LCHlch(42.03, 82.97, 315.36°)
OKLaboklab(52.65% 0.1305 -0.1653)
OKLCHoklch(52.65% 0.211 308.3)
XYZxyz(22.4746, 12.5226, 54.0456)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38C5 #70C538
analogous
#4638C5 #8D38C5 #C538B7
triadic
#8D38C5 #C58D38 #38C58D
tetradic
#8D38C5 #C54638 #70C538 #38B7C5
square
#8D38C5 #C54638 #70C538 #38B7C5
split-complementary
#8D38C5 #B7C538 #38C546
monochromatic
#491D66 #6B2A95 #8D38C5 #A867D4 #C396E1

Accessibility & contrast

On white

5.99
#8D38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8D38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38C5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38C5#FFFFFF#000000##FFFFFF
##8D38C51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#0F64C2
Tritanopia (blue-blind)
#84587B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d38c5;
/* rgb */ color: rgb(141, 56, 197);
/* oklch */ color: oklch(52.7% 0.211 308.3);
Tailwind
colors: {
  custom: {
    50: '#b376d7',
    500: '#8d38c5',
    950: '#000000',
  },
}
SCSS
$custom: #8d38c5;
$custom-light: #b376d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38c5",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 276.17,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52654,
    "c": 0.21059,
    "h": 308.3
  },
  "luminance": 0.12522
}

Semantic roles & 50–950 ramp

primary
#8D38C5
secondary
#A6CD8C
accent
#DF4984
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8D38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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