#8A3FC2#8A3FC2

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

Color values

HEX#8A3FC2
RGBrgb(138, 63, 194)
HSLhsl(274, 52%, 50%)
HSVhsv(274, 68%, 76%)
CMYKcmyk(28.9%, 67.5%, 0%, 23.9%)
CIE-LABlab(42.54, 54.63, -55.75)
CIE-LCHlch(42.54, 78.05, 314.42°)
OKLaboklab(52.86% 0.1196 -0.158)
OKLCHoklch(52.86% 0.198 307.1)
XYZxyz(21.9943, 12.8536, 52.3508)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FC2 #77C23F
analogous
#483FC2 #8A3FC2 #C23FB9
triadic
#8A3FC2 #C28A3F #3FC28A
tetradic
#8A3FC2 #C2483F #77C23F #3FB9C2
square
#8A3FC2 #C2483F #77C23F #3FB9C2
split-complementary
#8A3FC2 #B9C23F #3FC248
monochromatic
#482066 #692F95 #8A3FC2 #A66DD1 #C39CE0

Accessibility & contrast

On white

5.88
#8A3FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A3FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FC2
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FC2#FFFFFF#000000##FFFFFF
##8A3FC21.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#1E65BF
Tritanopia (blue-blind)
#815C7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3fc2;
/* rgb */ color: rgb(138, 63, 194);
/* oklch */ color: oklch(52.9% 0.198 307.1);
Tailwind
colors: {
  custom: {
    50: '#b179d5',
    500: '#8a3fc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fc2;
$custom-light: #b179d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fc2",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 274.351,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52865,
    "c": 0.19811,
    "h": 307.1
  },
  "luminance": 0.12853
}

Semantic roles & 50–950 ramp

primary
#8A3FC2
secondary
#AACC91
accent
#DB4D8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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