#8E2895#8E2895

#8E2895 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.186 H 325.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8E2895
RGBrgb(142, 40, 149)
HSLhsl(296, 58%, 37%)
HSVhsv(296, 73%, 58%)
CMYKcmyk(4.7%, 73.2%, 0%, 41.6%)
CIE-LABlab(36.82, 55.91, -38.11)
CIE-LCHlch(36.82, 67.67, 325.72°)
OKLaboklab(47.97% 0.1525 -0.106)
OKLCHoklch(47.97% 0.186 325.2)
XYZxyz(17.3385, 9.4394, 29.3367)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2895 #2F9528
analogous
#582895 #8E2895 #952866
triadic
#8E2895 #958E28 #28958E
tetradic
#8E2895 #955828 #2F9528 #286695
square
#8E2895 #955828 #2F9528 #286695
split-complementary
#8E2895 #669528 #289558
monochromatic
#320E35 #601B65 #8E2895 #BC35C5 #CE62D5

Accessibility & contrast

On white

7.27
#8E2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8E2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2895
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2895#FFFFFF#000000##FFFFFF
##8E28951.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064F98
Deuteranopia (green-blind)
#3F5B92
Tritanopia (blue-blind)
#913A5C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2895;
/* rgb */ color: rgb(142, 40, 149);
/* oklch */ color: oklch(48.0% 0.186 325.2);
Tailwind
colors: {
  custom: {
    50: '#b26db5',
    500: '#8e2895',
    950: '#000000',
  },
}
SCSS
$custom: #8e2895;
$custom-light: #b26db5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2895",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 296.147,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47965,
    "c": 0.18571,
    "h": 325.2
  },
  "luminance": 0.09438
}

Semantic roles & 50–950 ramp

primary
#8E2895
secondary
#64BB5E
accent
#E14751
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E2895

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

Preview Lab → · Contrast checker → · Palette generator →

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