#8D38C2#8D38C2

#8D38C2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.4% C 0.208 H 309.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8D38C2
RGBrgb(141, 56, 194)
HSLhsl(277, 55%, 49%)
HSVhsv(277, 71%, 76%)
CMYKcmyk(27.3%, 71.1%, 0%, 23.9%)
CIE-LABlab(41.82, 58.38, -56.89)
CIE-LCHlch(41.82, 81.51, 315.74°)
OKLaboklab(52.44% 0.1309 -0.1612)
OKLCHoklch(52.44% 0.208 309.1)
XYZxyz(22.1343, 12.3865, 52.2533)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38C2 #6DC238
analogous
#4838C2 #8D38C2 #C238B2
triadic
#8D38C2 #C28D38 #38C28D
tetradic
#8D38C2 #C24838 #6DC238 #38B2C2
square
#8D38C2 #C24838 #6DC238 #38B2C2
split-complementary
#8D38C2 #B2C238 #38C248
monochromatic
#481D63 #6A2A93 #8D38C2 #A865D2 #C394E0

Accessibility & contrast

On white

6.04
#8D38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8D38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38C2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38C2#FFFFFF#000000##FFFFFF
##8D38C21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#1864BF
Tritanopia (blue-blind)
#855779
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d38c2;
/* rgb */ color: rgb(141, 56, 194);
/* oklch */ color: oklch(52.4% 0.208 309.1);
Tailwind
colors: {
  custom: {
    50: '#b376d5',
    500: '#8d38c2',
    950: '#000000',
  },
}
SCSS
$custom: #8d38c2;
$custom-light: #b376d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38c2",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 276.957,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52438,
    "c": 0.20764,
    "h": 309.1
  },
  "luminance": 0.12386
}

Semantic roles & 50–950 ramp

primary
#8D38C2
secondary
#A3CB8A
accent
#DF4983
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8D38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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