#8D38CA#8D38CA

#8D38CA is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.0% C 0.216 H 307.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8D38CA
RGBrgb(141, 56, 202)
HSLhsl(275, 58%, 51%)
HSVhsv(275, 72%, 79%)
CMYKcmyk(30.2%, 72.3%, 0%, 20.8%)
CIE-LABlab(42.39, 60.14, -60.62)
CIE-LCHlch(42.39, 85.39, 314.77°)
OKLaboklab(53.02% 0.1297 -0.1721)
OKLCHoklch(53.02% 0.216 307)
XYZxyz(23.0571, 12.7556, 57.1131)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38CA #75CA38
analogous
#4438CA #8D38CA #CA38BE
triadic
#8D38CA #CA8D38 #38CA8D
tetradic
#8D38CA #CA4438 #75CA38 #38BECA
square
#8D38CA #CA4438 #75CA38 #38BECA
split-complementary
#8D38CA #BECA38 #38CA44
monochromatic
#4A1D6B #6C299B #8D38CA #A968D7 #C499E4

Accessibility & contrast

On white

5.91
#8D38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8D38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38CA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38CA#FFFFFF#000000##FFFFFF
##8D38CA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0065C7
Tritanopia (blue-blind)
#835A7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8d38ca;
/* rgb */ color: rgb(141, 56, 202);
/* oklch */ color: oklch(53.0% 0.216 307.0);
Tailwind
colors: {
  custom: {
    50: '#b376db',
    500: '#8d38ca',
    950: '#000000',
  },
}
SCSS
$custom: #8d38ca;
$custom-light: #b376db;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38ca",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 274.932,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53021,
    "c": 0.21551,
    "h": 307
  },
  "luminance": 0.12755
}

Semantic roles & 50–950 ramp

primary
#8D38CA
secondary
#AACF8E
accent
#E14787
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8D38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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