#8A3FBC#8A3FBC

#8A3FBC is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.192 H 308.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A3FBC
RGBrgb(138, 63, 188)
HSLhsl(276, 50%, 49%)
HSVhsv(276, 66%, 74%)
CMYKcmyk(26.6%, 66.5%, 0%, 26.3%)
CIE-LABlab(42.14, 53.27, -52.89)
CIE-LCHlch(42.14, 75.07, 315.20°)
OKLaboklab(52.45% 0.1201 -0.1496)
OKLCHoklch(52.45% 0.192 308.8)
XYZxyz(21.3340, 12.5895, 48.8733)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FBC #71BC3F
analogous
#4C3FBC #8A3FBC #BC3FB0
triadic
#8A3FBC #BC8A3F #3FBC8A
tetradic
#8A3FBC #BC4C3F #71BC3F #3FB0BC
square
#8A3FBC #BC4C3F #71BC3F #3FB0BC
split-complementary
#8A3FBC #B0BC3F #3FBC4C
monochromatic
#472060 #68308E #8A3FBC #A66BCD #C299DD

Accessibility & contrast

On white

5.97
#8A3FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A3FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FBC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FBC#FFFFFF#000000##FFFFFF
##8A3FBC1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#2864B9
Tritanopia (blue-blind)
#835978
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3fbc;
/* rgb */ color: rgb(138, 63, 188);
/* oklch */ color: oklch(52.4% 0.192 308.8);
Tailwind
colors: {
  custom: {
    50: '#b079d1',
    500: '#8a3fbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fbc;
$custom-light: #b079d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fbc",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 188
  },
  "hsl": {
    "h": 276,
    "s": 49.801,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52447,
    "c": 0.19185,
    "h": 308.8
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

primary
#8A3FBC
secondary
#A6C98E
accent
#D94E86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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