#8D38CB#8D38CB

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

Color values

HEX#8D38CB
RGBrgb(141, 56, 203)
HSLhsl(275, 59%, 51%)
HSVhsv(275, 72%, 80%)
CMYKcmyk(30.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(42.47, 60.37, -61.08)
CIE-LCHlch(42.47, 85.88, 314.66°)
OKLaboklab(53.1% 0.1295 -0.1735)
OKLCHoklch(53.1% 0.217 306.7)
XYZxyz(23.1758, 12.8031, 57.7387)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D38CB #76CB38
analogous
#4338CB #8D38CB #CB38BF
triadic
#8D38CB #CB8D38 #38CB8D
tetradic
#8D38CB #CB4338 #76CB38 #38BFCB
square
#8D38CB #CB4338 #76CB38 #38BFCB
split-complementary
#8D38CB #BFCB38 #38CB43
monochromatic
#4B1C6C #6C299D #8D38CB #A969D8 #C599E4

Accessibility & contrast

On white

5.90
#8D38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8D38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D38CB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D38CB#FFFFFF#000000##FFFFFF
##8D38CB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#825B7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8d38cb;
/* rgb */ color: rgb(141, 56, 203);
/* oklch */ color: oklch(53.1% 0.216 306.7);
Tailwind
colors: {
  custom: {
    50: '#b476dc',
    500: '#8d38cb',
    950: '#000000',
  },
}
SCSS
$custom: #8d38cb;
$custom-light: #b476dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d38cb",
  "rgb": {
    "r": 141,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 274.694,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.2165,
    "h": 306.7
  },
  "luminance": 0.12803
}

Semantic roles & 50–950 ramp

primary
#8D38CB
secondary
#AAD08F
accent
#E24688
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8D38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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