#8D27CA#8D27CA

#8D27CA is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.5% C 0.232 H 308.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8D27CA
RGBrgb(141, 39, 202)
HSLhsl(278, 68%, 47%)
HSVhsv(278, 81%, 79%)
CMYKcmyk(30.2%, 80.7%, 0%, 20.8%)
CIE-LABlab(40.21, 66.41, -64.16)
CIE-LCHlch(40.21, 92.35, 315.99°)
OKLaboklab(51.49% 0.144 -0.1824)
OKLCHoklch(51.49% 0.232 308.3)
XYZxyz(22.3685, 11.3784, 56.8835)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27CA #64CA27
analogous
#3B27CA #8D27CA #CA27B6
triadic
#8D27CA #CA8D27 #27CA8D
tetradic
#8D27CA #CA3B27 #64CA27 #27B6CA
square
#8D27CA #CA3B27 #64CA27 #27B6CA
split-complementary
#8D27CA #B6CA27 #27CA3B
monochromatic
#451363 #691D97 #8D27CA #A951DD #C284E7

Accessibility & contrast

On white

6.41
#8D27CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8D27CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27CA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27CA#FFFFFF#000000##FFFFFF
##8D27CA1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#83527A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d27ca;
/* rgb */ color: rgb(141, 39, 202);
/* oklch */ color: oklch(51.5% 0.232 308.3);
Tailwind
colors: {
  custom: {
    50: '#b46fdb',
    500: '#8d27ca',
    950: '#000000',
  },
}
SCSS
$custom: #8d27ca;
$custom-light: #b46fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27ca",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 202
  },
  "hsl": {
    "h": 277.546,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51487,
    "c": 0.23245,
    "h": 308.3
  },
  "luminance": 0.11378
}

Semantic roles & 50–950 ramp

primary
#8D27CA
secondary
#9CD07C
accent
#EB3D7E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8D27CA

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

Preview Lab → · Contrast checker → · Palette generator →

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