#8A3FC3#8A3FC3

#8A3FC3 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.9% C 0.199 H 306.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A3FC3
RGBrgb(138, 63, 195)
HSLhsl(274, 52%, 51%)
HSVhsv(274, 68%, 76%)
CMYKcmyk(29.2%, 67.7%, 0%, 23.5%)
CIE-LABlab(42.61, 54.86, -56.22)
CIE-LCHlch(42.61, 78.55, 314.30°)
OKLaboklab(52.94% 0.1195 -0.1593)
OKLCHoklch(52.94% 0.199 306.9)
XYZxyz(22.1070, 12.8987, 52.9443)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FC3 #78C33F
analogous
#483FC3 #8A3FC3 #C33FBA
triadic
#8A3FC3 #C38A3F #3FC38A
tetradic
#8A3FC3 #C3483F #78C33F #3FBAC3
square
#8A3FC3 #C3483F #78C33F #3FBAC3
split-complementary
#8A3FC3 #BAC33F #3FC348
monochromatic
#492067 #692F96 #8A3FC3 #A66ED2 #C39CE0

Accessibility & contrast

On white

5.87
#8A3FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A3FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FC3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FC3#FFFFFF#000000##FFFFFF
##8A3FC31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#1C65C0
Tritanopia (blue-blind)
#815C7C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3fc3;
/* rgb */ color: rgb(138, 63, 195);
/* oklch */ color: oklch(52.9% 0.199 306.9);
Tailwind
colors: {
  custom: {
    50: '#b179d6',
    500: '#8a3fc3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fc3;
$custom-light: #b179d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fc3",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 195
  },
  "hsl": {
    "h": 274.091,
    "s": 52.381,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52936,
    "c": 0.19916,
    "h": 306.9
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#8A3FC3
secondary
#ABCC92
accent
#DC4C8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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