#8F28CA#8F28CA

#8F28CA is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.8% C 0.232 H 309.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8F28CA
RGBrgb(143, 40, 202)
HSLhsl(278, 67%, 47%)
HSVhsv(278, 80%, 79%)
CMYKcmyk(29.2%, 80.2%, 0%, 20.8%)
CIE-LABlab(40.61, 66.42, -63.50)
CIE-LCHlch(40.61, 91.89, 316.29°)
OKLaboklab(51.82% 0.146 -0.1804)
OKLCHoklch(51.82% 0.232 309)
XYZxyz(22.7450, 11.6219, 56.9107)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28CA #63CA28
analogous
#3E28CA #8F28CA #CA28B4
triadic
#8F28CA #CA8F28 #28CA8F
tetradic
#8F28CA #CA3E28 #63CA28 #28B4CA
square
#8F28CA #CA3E28 #63CA28 #28B4CA
split-complementary
#8F28CA #B4CA28 #28CA3E
monochromatic
#471464 #6B1E97 #8F28CA #AA52DD #C385E7

Accessibility & contrast

On white

6.32
#8F28CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8F28CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F28CA
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28CA#FFFFFF#000000##FFFFFF
##8F28CA1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#86527A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8f28ca;
/* rgb */ color: rgb(143, 40, 202);
/* oklch */ color: oklch(51.8% 0.232 309.0);
Tailwind
colors: {
  custom: {
    50: '#b66fdb',
    500: '#8f28ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f28ca;
$custom-light: #b66fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28ca",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 278.148,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51824,
    "c": 0.2321,
    "h": 309
  },
  "luminance": 0.11621
}

Semantic roles & 50–950 ramp

primary
#8F28CA
secondary
#9CD07E
accent
#EA3E7D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8F28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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