#8E23D4#8E23D4

#8E23D4 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 52.1% C 0.245 H 306.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8E23D4
RGBrgb(142, 35, 212)
HSLhsl(276, 72%, 48%)
HSVhsv(276, 83%, 83%)
CMYKcmyk(33%, 83.5%, 0%, 16.9%)
CIE-LABlab(40.75, 69.84, -69.07)
CIE-LCHlch(40.75, 98.22, 315.31°)
OKLaboklab(52.14% 0.1453 -0.1968)
OKLCHoklch(52.14% 0.245 306.4)
XYZxyz(23.6374, 11.7066, 63.2889)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E23D4 #69D423
analogous
#3523D4 #8E23D4 #D423C1
triadic
#8E23D4 #D48E23 #23D48E
tetradic
#8E23D4 #D43523 #69D423 #23C1D4
square
#8E23D4 #D43523 #69D423 #23C1D4
split-complementary
#8E23D4 #C1D423 #23D435
monochromatic
#48126B #6B1A9F #8E23D4 #A952E2 #C386EB

Accessibility & contrast

On white

6.29
#8E23D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8E23D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E23D4
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E23D4#FFFFFF#000000##FFFFFF
##8E23D41.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD9
Deuteranopia (green-blind)
#0061D1
Tritanopia (blue-blind)
#81557F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8e23d4;
/* rgb */ color: rgb(142, 35, 212);
/* oklch */ color: oklch(52.1% 0.245 306.4);
Tailwind
colors: {
  custom: {
    50: '#b66ee2',
    500: '#8e23d4',
    950: '#000000',
  },
}
SCSS
$custom: #8e23d4;
$custom-light: #b66ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e23d4",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 276.271,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52136,
    "c": 0.24462,
    "h": 306.4
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#8E23D4
secondary
#A0D47E
accent
#EE3981
background
#FBF7FE
surface
#F7EDFC
border
#D0C8D5
text
#120816
muted
#817B84

Preview Lab

Preview with #8E23D4

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

Preview Lab → · Contrast checker → · Palette generator →

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