#8E258B#8E258B

#8E258B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.181 H 329.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#8E258B
RGBrgb(142, 37, 139)
HSLhsl(302, 59%, 35%)
HSVhsv(302, 74%, 56%)
CMYKcmyk(0%, 73.9%, 2.1%, 44.3%)
CIE-LABlab(35.87, 55.23, -33.50)
CIE-LCHlch(35.87, 64.59, 328.76°)
OKLaboklab(47.1% 0.1555 -0.0926)
OKLCHoklch(47.1% 0.181 329.2)
XYZxyz(16.4770, 8.9392, 25.2787)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E258B #258E28
analogous
#5C258E #8E258B #8E2557
triadic
#8E258B #8B8E25 #258B8E
tetradic
#8E258B #8E5C25 #258E28 #25578E
square
#8E258B #8E5C25 #258E28 #25578E
split-complementary
#8E258B #578E25 #258E5C
monochromatic
#2D0C2C #5D185B #8E258B #BF32BB #D45AD0

Accessibility & contrast

On white

7.53
#8E258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8E258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E258B
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E258B#FFFFFF#000000##FFFFFF
##8E258B1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8E
Deuteranopia (green-blind)
#435988
Tritanopia (blue-blind)
#933456
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e258b;
/* rgb */ color: rgb(142, 37, 139);
/* oklch */ color: oklch(47.1% 0.181 329.2);
Tailwind
colors: {
  custom: {
    50: '#b26bad',
    500: '#8e258b',
    950: '#000000',
  },
}
SCSS
$custom: #8e258b;
$custom-light: #b26bad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e258b",
  "rgb": {
    "r": 142,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 301.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47098,
    "c": 0.18097,
    "h": 329.2
  },
  "luminance": 0.08938
}

Semantic roles & 50–950 ramp

primary
#8E258B
secondary
#56B959
accent
#E24A46
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E258B

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

Preview Lab → · Contrast checker → · Palette generator →

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