#8E23B2#8E23B2

#8E23B2 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.215 H 315.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8E23B2
RGBrgb(142, 35, 178)
HSLhsl(285, 67%, 42%)
HSVhsv(285, 80%, 70%)
CMYKcmyk(20.2%, 80.3%, 0%, 30.2%)
CIE-LABlab(38.14, 62.98, -53.42)
CIE-LCHlch(38.14, 82.59, 319.70°)
OKLaboklab(49.51% 0.1537 -0.1508)
OKLCHoklch(49.51% 0.215 315.5)
XYZxyz(19.7909, 10.1680, 43.0310)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E23B2 #47B223
analogous
#4723B2 #8E23B2 #B2238F
triadic
#8E23B2 #B28E23 #23B28E
tetradic
#8E23B2 #B24723 #47B223 #238FB2
square
#8E23B2 #B24723 #47B223 #238FB2
split-complementary
#8E23B2 #8FB223 #23B247
monochromatic
#3C0F4C #65197F #8E23B2 #B03AD8 #C56DE2

Accessibility & contrast

On white

6.92
#8E23B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8E23B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E23B2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E23B2#FFFFFF#000000##FFFFFF
##8E23B21.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#1D5CAF
Tritanopia (blue-blind)
#8B456B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e23b2;
/* rgb */ color: rgb(142, 35, 178);
/* oklch */ color: oklch(49.5% 0.215 315.5);
Tailwind
colors: {
  custom: {
    50: '#b46cca',
    500: '#8e23b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e23b2;
$custom-light: #b46cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e23b2",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 284.895,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49509,
    "c": 0.21531,
    "h": 315.5
  },
  "luminance": 0.10167
}

Semantic roles & 50–950 ramp

primary
#8E23B2
secondary
#80C968
accent
#EA3E69
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120813
muted
#817A82

Preview Lab

Preview with #8E23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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