#8C28CA#8C28CA

#8C28CA is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.4% C 0.231 H 307.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8C28CA
RGBrgb(140, 40, 202)
HSLhsl(277, 67%, 47%)
HSVhsv(277, 80%, 79%)
CMYKcmyk(30.7%, 80.2%, 0%, 20.8%)
CIE-LABlab(40.18, 65.93, -64.23)
CIE-LCHlch(40.18, 92.04, 315.75°)
OKLaboklab(51.43% 0.142 -0.1827)
OKLCHoklch(51.43% 0.231 307.9)
XYZxyz(22.2324, 11.3576, 56.8867)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C28CA #66CA28
analogous
#3B28CA #8C28CA #CA28B7
triadic
#8C28CA #CA8C28 #28CA8C
tetradic
#8C28CA #CA3B28 #66CA28 #28B7CA
square
#8C28CA #CA3B28 #66CA28 #28B7CA
split-complementary
#8C28CA #B7CA28 #28CA3B
monochromatic
#451464 #691E97 #8C28CA #A852DD #C285E7

Accessibility & contrast

On white

6.42
#8C28CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8C28CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C28CA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C28CA#FFFFFF#000000##FFFFFF
##8C28CA1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c28ca;
/* rgb */ color: rgb(140, 40, 202);
/* oklch */ color: oklch(51.4% 0.231 307.9);
Tailwind
colors: {
  custom: {
    50: '#b46fdb',
    500: '#8c28ca',
    950: '#000000',
  },
}
SCSS
$custom: #8c28ca;
$custom-light: #b46fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c28ca",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 277.037,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51434,
    "c": 0.23134,
    "h": 307.9
  },
  "luminance": 0.11357
}

Semantic roles & 50–950 ramp

primary
#8C28CA
secondary
#9DD07E
accent
#EA3E80
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8C28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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