#8D38CC#8D38CC

#8D38CC is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.2% C 0.217 H 306.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#8D38CC
RGBrgb(141, 56, 204)
HSLhsl(274, 59%, 51%)
HSVhsv(274, 73%, 80%)
CMYKcmyk(30.9%, 72.5%, 0%, 20%)
CIE-LABlab(42.54, 60.59, -61.54)
CIE-LCHlch(42.54, 86.36, 314.55°)
OKLaboklab(53.17% 0.1293 -0.1748)
OKLCHoklch(53.17% 0.217 306.5)
XYZxyz(23.2954, 12.8509, 58.3683)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38CC #77CC38
analogous
#4338CC #8D38CC #CC38C1
triadic
#8D38CC #CC8D38 #38CC8D
tetradic
#8D38CC #CC4338 #77CC38 #38C1CC
square
#8D38CC #CC4338 #77CC38 #38C1CC
split-complementary
#8D38CC #C1CC38 #38CC43
monochromatic
#4B1C6E #6C299E #8D38CC #A969D8 #C599E5

Accessibility & contrast

On white

5.88
#8D38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8D38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38CC
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38CC#FFFFFF#000000##FFFFFF
##8D38CC1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#825B7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8d38cc;
/* rgb */ color: rgb(141, 56, 204);
/* oklch */ color: oklch(53.2% 0.217 306.5);
Tailwind
colors: {
  custom: {
    50: '#b476dc',
    500: '#8d38cc',
    950: '#000000',
  },
}
SCSS
$custom: #8d38cc;
$custom-light: #b476dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38cc",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 274.459,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53169,
    "c": 0.21748,
    "h": 306.5
  },
  "luminance": 0.12851
}

Semantic roles & 50–950 ramp

primary
#8D38CC
secondary
#ABD18F
accent
#E24588
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8D38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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