#8C52BB#8C52BB

#8C52BB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.164 H 307.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8C52BB
RGBrgb(140, 82, 187)
HSLhsl(273, 44%, 53%)
HSVhsv(273, 56%, 73%)
CMYKcmyk(25.1%, 56.1%, 0%, 26.7%)
CIE-LABlab(45.90, 43.84, -46.26)
CIE-LCHlch(45.90, 63.73, 313.47°)
OKLaboklab(55.22% 0.0994 -0.1301)
OKLCHoklch(55.22% 0.164 307.4)
XYZxyz(22.8003, 15.1982, 48.7365)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C52BB #81BB52
analogous
#5852BB #8C52BB #BB52B5
triadic
#8C52BB #BB8C52 #52BB8C
tetradic
#8C52BB #BB5852 #81BB52 #52B5BB
square
#8C52BB #BB5852 #81BB52 #52B5BB
split-complementary
#8C52BB #B5BB52 #52BB58
monochromatic
#4D2969 #6D3B95 #8C52BB #A97ECC #C6AADE

Accessibility & contrast

On white

5.20
#8C52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8C52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C52BB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C52BB#FFFFFF#000000##FFFFFF
##8C52BB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6BBE
Deuteranopia (green-blind)
#436DB8
Tritanopia (blue-blind)
#85657F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8c52bb;
/* rgb */ color: rgb(140, 82, 187);
/* oklch */ color: oklch(55.2% 0.164 307.4);
Tailwind
colors: {
  custom: {
    50: '#b085d0',
    500: '#8c52bb',
    950: '#000000',
  },
}
SCSS
$custom: #8c52bb;
$custom-light: #b085d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c52bb",
  "rgb": {
    "r": 140,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 273.143,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55218,
    "c": 0.16376,
    "h": 307.4
  },
  "luminance": 0.15198
}

Semantic roles & 50–950 ramp

primary
#8C52BB
secondary
#B2CB9E
accent
#D3548D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8C52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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