#8D38D4#8D38D4

#8D38D4 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.8% C 0.225 H 304.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8D38D4
RGBrgb(141, 56, 212)
HSLhsl(273, 64%, 53%)
HSVhsv(273, 74%, 83%)
CMYKcmyk(33.5%, 73.6%, 0%, 16.9%)
CIE-LABlab(43.13, 62.38, -65.19)
CIE-LCHlch(43.13, 90.23, 313.74°)
OKLaboklab(53.77% 0.1278 -0.1856)
OKLCHoklch(53.77% 0.225 304.6)
XYZxyz(24.2796, 13.2446, 63.5520)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38D4 #7FD438
analogous
#3F38D4 #8D38D4 #D438CD
triadic
#8D38D4 #D48D38 #38D48D
tetradic
#8D38D4 #D43F38 #7FD438 #38CDD4
square
#8D38D4 #D43F38 #7FD438 #38CDD4
split-complementary
#8D38D4 #CDD438 #38D43F
monochromatic
#4D1A78 #6D25AA #8D38D4 #AA6ADF #C79DEA

Accessibility & contrast

On white

5.76
#8D38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8D38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38D4
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38D4#FFFFFF#000000##FFFFFF
##8D38D41.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0066D1
Tritanopia (blue-blind)
#7F5E83
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d38d4;
/* rgb */ color: rgb(141, 56, 212);
/* oklch */ color: oklch(53.8% 0.225 304.6);
Tailwind
colors: {
  custom: {
    50: '#b477e2',
    500: '#8d38d4',
    950: '#000000',
  },
}
SCSS
$custom: #8d38d4;
$custom-light: #b477e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38d4",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 272.692,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53773,
    "c": 0.22535,
    "h": 304.6
  },
  "luminance": 0.13245
}

Semantic roles & 50–950 ramp

primary
#8D38D4
secondary
#B1D692
accent
#E7408C
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120915
muted
#817B84

Preview Lab

Preview with #8D38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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