#8F28B3#8F28B3

#8F28B3 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.212 H 315.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8F28B3
RGBrgb(143, 40, 179)
HSLhsl(284, 63%, 43%)
HSVhsv(284, 78%, 70%)
CMYKcmyk(20.1%, 77.7%, 0%, 29.8%)
CIE-LABlab(38.92, 61.76, -52.75)
CIE-LCHlch(38.92, 81.22, 319.50°)
OKLaboklab(50.11% 0.1507 -0.1488)
OKLCHoklch(50.11% 0.212 315.4)
XYZxyz(20.2218, 10.6127, 43.6223)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F28B3 #4CB328
analogous
#4928B3 #8F28B3 #B32892
triadic
#8F28B3 #B38F28 #28B38F
tetradic
#8F28B3 #B34928 #4CB328 #2892B3
square
#8F28B3 #B34928 #4CB328 #2892B3
split-complementary
#8F28B3 #92B328 #28B349
monochromatic
#3F124F #671D81 #8F28B3 #AF43D5 #C475E0

Accessibility & contrast

On white

6.73
#8F28B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8F28B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F28B3
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F28B3#FFFFFF#000000##FFFFFF
##8F28B31.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#225EB0
Tritanopia (blue-blind)
#8C486D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f28b3;
/* rgb */ color: rgb(143, 40, 179);
/* oklch */ color: oklch(50.1% 0.212 315.4);
Tailwind
colors: {
  custom: {
    50: '#b46eca',
    500: '#8f28b3',
    950: '#000000',
  },
}
SCSS
$custom: #8f28b3;
$custom-light: #b46eca;
$custom-dark: #000000;
JSON
{
  "hex": "#8f28b3",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 284.46,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5011,
    "c": 0.21184,
    "h": 315.4
  },
  "luminance": 0.10612
}

Semantic roles & 50–950 ramp

primary
#8F28B3
secondary
#86C86F
accent
#E6416C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8F28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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