#8C3EDA#8C3EDA

#8C3EDA is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.8% C 0.225 H 302.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8C3EDA
RGBrgb(140, 62, 218)
HSLhsl(270, 68%, 55%)
HSVhsv(270, 72%, 85%)
CMYKcmyk(35.8%, 71.6%, 0%, 14.5%)
CIE-LABlab(44.35, 61.03, -66.65)
CIE-LCHlch(44.35, 90.38, 312.48°)
OKLaboklab(54.75% 0.1198 -0.1899)
OKLCHoklch(54.75% 0.225 302.2)
XYZxyz(25.1897, 14.0826, 67.7072)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3EDA #8CDA3E
analogous
#3E3EDA #8C3EDA #DA3EDA
triadic
#8C3EDA #DA8C3E #3EDA8C
tetradic
#8C3EDA #DA3E3E #8CDA3E #3EDADA
square
#8C3EDA #DA3E3E #8CDA3E #3EDADA
split-complementary
#8C3EDA #DADA3E #3EDA3E
monochromatic
#4F1984 #6D23B8 #8C3EDA #AB71E4 #C9A5EE

Accessibility & contrast

On white

5.50
#8C3EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8C3EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3EDA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3EDA#FFFFFF#000000##FFFFFF
##8C3EDA1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DF
Deuteranopia (green-blind)
#0068D7
Tritanopia (blue-blind)
#7C6488
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8c3eda;
/* rgb */ color: rgb(140, 62, 218);
/* oklch */ color: oklch(54.8% 0.225 302.2);
Tailwind
colors: {
  custom: {
    50: '#b47ae6',
    500: '#8c3eda',
    950: '#000000',
  },
}
SCSS
$custom: #8c3eda;
$custom-light: #b47ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3eda",
  "rgb": {
    "r": 140,
    "g": 62,
    "b": 218
  },
  "hsl": {
    "h": 270,
    "s": 67.826,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5475,
    "c": 0.22455,
    "h": 302.2
  },
  "luminance": 0.14083
}

Semantic roles & 50–950 ramp

primary
#8C3EDA
secondary
#BADB99
accent
#EB3D94
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C3EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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