#8A3FBA#8A3FBA

#8A3FBA is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.190 H 309.3°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8A3FBA
RGBrgb(138, 63, 186)
HSLhsl(277, 49%, 49%)
HSVhsv(277, 66%, 73%)
CMYKcmyk(25.8%, 66.1%, 0%, 27.1%)
CIE-LABlab(42.01, 52.82, -51.94)
CIE-LCHlch(42.01, 74.08, 315.48°)
OKLaboklab(52.31% 0.1203 -0.1468)
OKLCHoklch(52.31% 0.19 309.3)
XYZxyz(21.1199, 12.5038, 47.7458)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FBA #6FBA3F
analogous
#4C3FBA #8A3FBA #BA3FAD
triadic
#8A3FBA #BA8A3F #3FBA8A
tetradic
#8A3FBA #BA4C3F #6FBA3F #3FADBA
square
#8A3FBA #BA4C3F #6FBA3F #3FADBA
split-complementary
#8A3FBA #ADBA3F #3FBA4C
monochromatic
#46205F #68308C #8A3FBA #A66ACC #C197DC

Accessibility & contrast

On white

6.00
#8A3FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8A3FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FBA
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FBA#FFFFFF#000000##FFFFFF
##8A3FBA1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2B64B7
Tritanopia (blue-blind)
#835977
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3fba;
/* rgb */ color: rgb(138, 63, 186);
/* oklch */ color: oklch(52.3% 0.190 309.3);
Tailwind
colors: {
  custom: {
    50: '#b079cf',
    500: '#8a3fba',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fba;
$custom-light: #b079cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fba",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 186
  },
  "hsl": {
    "h": 276.585,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5231,
    "c": 0.18977,
    "h": 309.3
  },
  "luminance": 0.12503
}

Semantic roles & 50–950 ramp

primary
#8A3FBA
secondary
#A4C88D
accent
#D94F85
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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