#8A3EDA#8A3EDA

#8A3EDA is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.224 H 301.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A3EDA
RGBrgb(138, 62, 218)
HSLhsl(269, 68%, 55%)
HSVhsv(269, 72%, 85%)
CMYKcmyk(36.7%, 71.6%, 0%, 14.5%)
CIE-LABlab(44.10, 60.67, -67.07)
CIE-LCHlch(44.10, 90.44, 312.13°)
OKLaboklab(54.52% 0.117 -0.1912)
OKLCHoklch(54.52% 0.224 301.5)
XYZxyz(24.8557, 13.9103, 67.6915)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EDA #8EDA3E
analogous
#3E40DA #8A3EDA #D83EDA
triadic
#8A3EDA #DA8A3E #3EDA8A
tetradic
#8A3EDA #DA3E40 #8EDA3E #3EDAD8
square
#8A3EDA #DA3E40 #8EDA3E #3EDAD8
split-complementary
#8A3EDA #DAD83E #40DA3E
monochromatic
#4D1984 #6B23B8 #8A3EDA #A971E4 #C8A5EE

Accessibility & contrast

On white

5.55
#8A3EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A3EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EDA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EDA#FFFFFF#000000##FFFFFF
##8A3EDA1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DF
Deuteranopia (green-blind)
#0067D7
Tritanopia (blue-blind)
#796488
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3eda;
/* rgb */ color: rgb(138, 62, 218);
/* oklch */ color: oklch(54.5% 0.224 301.5);
Tailwind
colors: {
  custom: {
    50: '#b27ae6',
    500: '#8a3eda',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eda;
$custom-light: #b27ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eda",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 218
  },
  "hsl": {
    "h": 269.231,
    "s": 67.826,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54521,
    "c": 0.2242,
    "h": 301.5
  },
  "luminance": 0.1391
}

Semantic roles & 50–950 ramp

primary
#8A3EDA
secondary
#BBDB99
accent
#EB3D96
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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