#8A3EBA#8A3EBA

#8A3EBA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.191 H 309.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8A3EBA
RGBrgb(138, 62, 186)
HSLhsl(277, 50%, 49%)
HSVhsv(277, 67%, 73%)
CMYKcmyk(25.8%, 66.7%, 0%, 27.1%)
CIE-LABlab(41.84, 53.29, -52.21)
CIE-LCHlch(41.84, 74.60, 315.59°)
OKLaboklab(52.19% 0.1214 -0.1476)
OKLCHoklch(52.19% 0.191 309.5)
XYZxyz(21.0650, 12.3941, 47.7275)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EBA #6EBA3E
analogous
#4C3EBA #8A3EBA #BA3EAC
triadic
#8A3EBA #BA8A3E #3EBA8A
tetradic
#8A3EBA #BA4C3E #6EBA3E #3EACBA
square
#8A3EBA #BA4C3E #6EBA3E #3EACBA
split-complementary
#8A3EBA #ACBA3E #3EBA4C
monochromatic
#461F5E #682F8C #8A3EBA #A668CD #C196DC

Accessibility & contrast

On white

6.04
#8A3EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A3EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EBA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EBA#FFFFFF#000000##FFFFFF
##8A3EBA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#2A64B7
Tritanopia (blue-blind)
#835877
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3eba;
/* rgb */ color: rgb(138, 62, 186);
/* oklch */ color: oklch(52.2% 0.191 309.5);
Tailwind
colors: {
  custom: {
    50: '#b079cf',
    500: '#8a3eba',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eba;
$custom-light: #b079cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eba",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 276.774,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52188,
    "c": 0.19111,
    "h": 309.5
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#8A3EBA
secondary
#A3C88C
accent
#DA4E84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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