#8D38CD#8D38CD

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

Color values

HEX#8D38CD
RGBrgb(141, 56, 205)
HSLhsl(274, 60%, 51%)
HSVhsv(274, 73%, 80%)
CMYKcmyk(31.2%, 72.7%, 0%, 19.6%)
CIE-LABlab(42.61, 60.81, -62.00)
CIE-LCHlch(42.61, 86.85, 314.44°)
OKLaboklab(53.24% 0.1291 -0.1762)
OKLCHoklch(53.24% 0.218 306.2)
XYZxyz(23.4157, 12.8991, 59.0020)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38CD #78CD38
analogous
#4238CD #8D38CD #CD38C2
triadic
#8D38CD #CD8D38 #38CD8D
tetradic
#8D38CD #CD4238 #78CD38 #38C2CD
square
#8D38CD #CD4238 #78CD38 #38C2CD
split-complementary
#8D38CD #C2CD38 #38CD42
monochromatic
#4B1C6F #6C28A0 #8D38CD #A969D9 #C59AE6

Accessibility & contrast

On white

5.87
#8D38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8D38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38CD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38CD#FFFFFF#000000##FFFFFF
##8D38CD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#825C80
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d38cd;
/* rgb */ color: rgb(141, 56, 205);
/* oklch */ color: oklch(53.2% 0.218 306.2);
Tailwind
colors: {
  custom: {
    50: '#b476dd',
    500: '#8d38cd',
    950: '#000000',
  },
}
SCSS
$custom: #8d38cd;
$custom-light: #b476dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38cd",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 274.228,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53244,
    "c": 0.21846,
    "h": 306.2
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

primary
#8D38CD
secondary
#ACD18F
accent
#E34589
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8D38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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