#8E25B2#8E25B2

#8E25B2 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.213 H 315.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8E25B2
RGBrgb(142, 37, 178)
HSLhsl(285, 66%, 42%)
HSVhsv(285, 79%, 70%)
CMYKcmyk(20.2%, 79.2%, 0%, 30.2%)
CIE-LABlab(38.36, 62.36, -53.08)
CIE-LCHlch(38.36, 81.89, 319.60°)
OKLaboklab(49.66% 0.1521 -0.1498)
OKLCHoklch(49.66% 0.214 315.4)
XYZxyz(19.8515, 10.2890, 43.0511)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E25B2 #49B225
analogous
#4825B2 #8E25B2 #B2258F
triadic
#8E25B2 #B28E25 #25B28E
tetradic
#8E25B2 #B24825 #49B225 #258FB2
square
#8E25B2 #B24825 #49B225 #258FB2
split-complementary
#8E25B2 #8FB225 #25B248
monochromatic
#3D104D #661A7F #8E25B2 #B03DD7 #C470E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E25B2#FFFFFF#000000##FFFFFF
##8E25B21.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)
#0054B6
Deuteranopia (green-blind)
#1F5DAF
Tritanopia (blue-blind)
#8B466C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e25b2;
/* rgb */ color: rgb(142, 37, 178);
/* oklch */ color: oklch(49.7% 0.213 315.4);
Tailwind
colors: {
  custom: {
    50: '#b46dca',
    500: '#8e25b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e25b2;
$custom-light: #b46dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e25b2",
  "rgb": {
    "r": 142,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 284.681,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4966,
    "c": 0.2135,
    "h": 315.4
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#8E25B2
secondary
#83C86B
accent
#E93F6A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120813
muted
#817A82

Preview Lab

Preview with #8E25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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