#8E2F9F#8E2F9F

#8E2F9F is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.186 H 321.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8E2F9F
RGBrgb(142, 47, 159)
HSLhsl(291, 54%, 40%)
HSVhsv(291, 70%, 62%)
CMYKcmyk(10.7%, 70.4%, 0%, 37.6%)
CIE-LABlab(38.35, 55.11, -41.72)
CIE-LCHlch(38.35, 69.12, 322.87°)
OKLaboklab(49.26% 0.1449 -0.1166)
OKLCHoklch(49.26% 0.186 321.2)
XYZxyz(18.4291, 10.2880, 33.8092)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F9F #409F2F
analogous
#562F9F #8E2F9F #9F2F78
triadic
#8E2F9F #9F8E2F #2F9F8E
tetradic
#8E2F9F #9F562F #409F2F #2F789F
square
#8E2F9F #9F562F #409F2F #2F789F
split-complementary
#8E2F9F #789F2F #2F9F56
monochromatic
#3A1341 #642170 #8E2F9F #B444C8 #C773D6

Accessibility & contrast

On white

6.87
#8E2F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8E2F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2F9F
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F9F#FFFFFF#000000##FFFFFF
##8E2F9F1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A2
Deuteranopia (green-blind)
#3C5E9C
Tritanopia (blue-blind)
#8F4364
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2f9f;
/* rgb */ color: rgb(142, 47, 159);
/* oklch */ color: oklch(49.3% 0.186 321.2);
Tailwind
colors: {
  custom: {
    50: '#b270bc',
    500: '#8e2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f9f;
$custom-light: #b270bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f9f",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 290.893,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49259,
    "c": 0.18599,
    "h": 321.2
  },
  "luminance": 0.10287
}

Semantic roles & 50–950 ramp

primary
#8E2F9F
secondary
#79BD6D
accent
#DE4A60
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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