#8D52B2#8D52B2

#8D52B2 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.154 H 310.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8D52B2
RGBrgb(141, 82, 178)
HSLhsl(277, 38%, 51%)
HSVhsv(277, 54%, 70%)
CMYKcmyk(20.8%, 53.9%, 0%, 30.2%)
CIE-LABlab(45.51, 42.02, -41.61)
CIE-LCHlch(45.51, 59.14, 315.28°)
OKLaboklab(54.79% 0.1002 -0.1165)
OKLCHoklch(54.79% 0.154 310.7)
XYZxyz(22.0362, 14.9121, 43.8283)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D52B2 #77B252
analogous
#5D52B2 #8D52B2 #B252A7
triadic
#8D52B2 #B28D52 #52B28D
tetradic
#8D52B2 #B25D52 #77B252 #52A7B2
square
#8D52B2 #B25D52 #77B252 #52A7B2
split-complementary
#8D52B2 #A7B252 #52B25D
monochromatic
#4B2A5F #6C3D8A #8D52B2 #A97CC5 #C5A7D8

Accessibility & contrast

On white

5.27
#8D52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8D52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D52B2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D52B2#FFFFFF#000000##FFFFFF
##8D52B21.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#4A6DB0
Tritanopia (blue-blind)
#89627A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8d52b2;
/* rgb */ color: rgb(141, 82, 178);
/* oklch */ color: oklch(54.8% 0.154 310.7);
Tailwind
colors: {
  custom: {
    50: '#b185c9',
    500: '#8d52b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d52b2;
$custom-light: #b185c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d52b2",
  "rgb": {
    "r": 141,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 276.875,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54792,
    "c": 0.15369,
    "h": 310.7
  },
  "luminance": 0.14912
}

Semantic roles & 50–950 ramp

primary
#8D52B2
secondary
#ABC59B
accent
#CE5987
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8D52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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