#8A3EDB#8A3EDB

#8A3EDB is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.6% C 0.225 H 301.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A3EDB
RGBrgb(138, 62, 219)
HSLhsl(269, 69%, 55%)
HSVhsv(269, 72%, 86%)
CMYKcmyk(37%, 71.7%, 0%, 14.1%)
CIE-LABlab(44.18, 60.91, -67.52)
CIE-LCHlch(44.18, 90.93, 312.05°)
OKLaboklab(54.6% 0.1168 -0.1925)
OKLCHoklch(54.6% 0.225 301.2)
XYZxyz(24.9869, 13.9628, 68.3828)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EDB #8FDB3E
analogous
#3E40DB #8A3EDB #D93EDB
triadic
#8A3EDB #DB8A3E #3EDB8A
tetradic
#8A3EDB #DB3E40 #8FDB3E #3EDBD9
square
#8A3EDB #DB3E40 #8FDB3E #3EDBD9
split-complementary
#8A3EDB #DBD93E #40DB3E
monochromatic
#4E1986 #6C23B9 #8A3EDB #A972E5 #C9A5EE

Accessibility & contrast

On white

5.54
#8A3EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A3EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EDB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EDB#FFFFFF#000000##FFFFFF
##8A3EDB1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E0
Deuteranopia (green-blind)
#0068D8
Tritanopia (blue-blind)
#786589
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3edb;
/* rgb */ color: rgb(138, 62, 219);
/* oklch */ color: oklch(54.6% 0.225 301.2);
Tailwind
colors: {
  custom: {
    50: '#b27ae7',
    500: '#8a3edb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3edb;
$custom-light: #b27ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3edb",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 219
  },
  "hsl": {
    "h": 269.045,
    "s": 68.559,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54598,
    "c": 0.22523,
    "h": 301.2
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

primary
#8A3EDB
secondary
#BBDB99
accent
#EB3C97
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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