#8A3ED9#8A3ED9

#8A3ED9 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.4% C 0.223 H 301.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A3ED9
RGBrgb(138, 62, 217)
HSLhsl(269, 67%, 55%)
HSVhsv(269, 71%, 85%)
CMYKcmyk(36.4%, 71.4%, 0%, 14.9%)
CIE-LABlab(44.03, 60.44, -66.62)
CIE-LCHlch(44.03, 89.95, 312.21°)
OKLaboklab(54.45% 0.1172 -0.1899)
OKLCHoklch(54.45% 0.223 301.7)
XYZxyz(24.7252, 13.8582, 67.0045)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ED9 #8DD93E
analogous
#3E40D9 #8A3ED9 #D73ED9
triadic
#8A3ED9 #D98A3E #3ED98A
tetradic
#8A3ED9 #D93E40 #8DD93E #3ED9D7
square
#8A3ED9 #D93E40 #8DD93E #3ED9D7
split-complementary
#8A3ED9 #D9D73E #40D93E
monochromatic
#4D1A83 #6B24B6 #8A3ED9 #A971E3 #C8A4ED

Accessibility & contrast

On white

5.57
#8A3ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A3ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ED9
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ED9#FFFFFF#000000##FFFFFF
##8A3ED91.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a3ed9;
/* rgb */ color: rgb(138, 62, 217);
/* oklch */ color: oklch(54.4% 0.223 301.7);
Tailwind
colors: {
  custom: {
    50: '#b27ae6',
    500: '#8a3ed9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ed9;
$custom-light: #b27ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ed9",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 217
  },
  "hsl": {
    "h": 269.419,
    "s": 67.1,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54445,
    "c": 0.22317,
    "h": 301.7
  },
  "luminance": 0.13858
}

Semantic roles & 50–950 ramp

primary
#8A3ED9
secondary
#BADA99
accent
#EA3E96
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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