#8D38D9#8D38D9

#8D38D9 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.2% C 0.230 H 303.4°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8D38D9
RGBrgb(141, 56, 217)
HSLhsl(272, 68%, 54%)
HSVhsv(272, 74%, 85%)
CMYKcmyk(35%, 74.2%, 0%, 14.9%)
CIE-LABlab(43.51, 63.52, -67.45)
CIE-LCHlch(43.51, 92.65, 313.28°)
OKLaboklab(54.16% 0.1268 -0.1922)
OKLCHoklch(54.16% 0.23 303.4)
XYZxyz(24.9201, 13.5008, 66.9252)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38D9 #84D938
analogous
#3C38D9 #8D38D9 #D938D4
triadic
#8D38D9 #D98D38 #38D98D
tetradic
#8D38D9 #D93C38 #84D938 #38D4D9
square
#8D38D9 #D93C38 #84D938 #38D4D9
split-complementary
#8D38D9 #D4D938 #38D93C
monochromatic
#4E187E #6E22B2 #8D38D9 #AA6BE3 #C89FED

Accessibility & contrast

On white

5.68
#8D38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8D38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38D9
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38D9#FFFFFF#000000##FFFFFF
##8D38D91.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#7E6186
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d38d9;
/* rgb */ color: rgb(141, 56, 217);
/* oklch */ color: oklch(54.2% 0.230 303.4);
Tailwind
colors: {
  custom: {
    50: '#b577e6',
    500: '#8d38d9',
    950: '#000000',
  },
}
SCSS
$custom: #8d38d9;
$custom-light: #b577e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38d9",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 271.677,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54159,
    "c": 0.23027,
    "h": 303.4
  },
  "luminance": 0.13501
}

Semantic roles & 50–950 ramp

primary
#8D38D9
secondary
#B4D994
accent
#EB3D8F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8D38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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