#8D38E3#8D38E3

#8D38E3 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.9% C 0.240 H 301.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8D38E3
RGBrgb(141, 56, 227)
HSLhsl(270, 75%, 55%)
HSVhsv(270, 75%, 89%)
CMYKcmyk(37.9%, 75.3%, 0%, 11%)
CIE-LABlab(44.29, 65.80, -71.89)
CIE-LCHlch(44.29, 97.46, 312.47°)
OKLaboklab(54.95% 0.1245 -0.2053)
OKLCHoklch(54.95% 0.24 301.2)
XYZxyz(26.2604, 14.0370, 73.9840)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38E3 #8EE338
analogous
#3838E3 #8D38E3 #E338E3
triadic
#8D38E3 #E38D38 #38E38D
tetradic
#8D38E3 #E33838 #8EE338 #38E3E3
square
#8D38E3 #E33838 #8EE338 #38E3E3
split-complementary
#8D38E3 #E3E338 #38E338
monochromatic
#50148D #6E1BC2 #8D38E3 #AC6EEB #CAA3F2

Accessibility & contrast

On white

5.52
#8D38E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8D38E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38E3
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38E3#FFFFFF#000000##FFFFFF
##8D38E31.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E8
Deuteranopia (green-blind)
#0068E0
Tritanopia (blue-blind)
#7A658C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8d38e3;
/* rgb */ color: rgb(141, 56, 227);
/* oklch */ color: oklch(54.9% 0.240 301.2);
Tailwind
colors: {
  custom: {
    50: '#b577ed',
    500: '#8d38e3',
    950: '#000000',
  },
}
SCSS
$custom: #8d38e3;
$custom-light: #b577ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38e3",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 227
  },
  "hsl": {
    "h": 269.825,
    "s": 75.33,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54947,
    "c": 0.24009,
    "h": 301.2
  },
  "luminance": 0.14037
}

Semantic roles & 50–950 ramp

primary
#8D38E3
secondary
#BCDF98
accent
#F23694
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8D38E3

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

Preview Lab → · Contrast checker → · Palette generator →

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