#8A3FBB#8A3FBB

#8A3FBB is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.4% C 0.191 H 309.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A3FBB
RGBrgb(138, 63, 187)
HSLhsl(276, 50%, 49%)
HSVhsv(276, 66%, 73%)
CMYKcmyk(26.2%, 66.3%, 0%, 26.7%)
CIE-LABlab(42.07, 53.05, -52.42)
CIE-LCHlch(42.07, 74.57, 315.34°)
OKLaboklab(52.38% 0.1202 -0.1482)
OKLCHoklch(52.38% 0.191 309.1)
XYZxyz(21.2266, 12.5465, 48.3076)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FBB #70BB3F
analogous
#4C3FBB #8A3FBB #BB3FAE
triadic
#8A3FBB #BB8A3F #3FBB8A
tetradic
#8A3FBB #BB4C3F #70BB3F #3FAEBB
square
#8A3FBB #BB4C3F #70BB3F #3FAEBB
split-complementary
#8A3FBB #AEBB3F #3FBB4C
monochromatic
#46205F #68308D #8A3FBB #A66ACD #C198DC

Accessibility & contrast

On white

5.98
#8A3FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A3FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FBB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FBB#FFFFFF#000000##FFFFFF
##8A3FBB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#2A64B8
Tritanopia (blue-blind)
#835978
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3fbb;
/* rgb */ color: rgb(138, 63, 187);
/* oklch */ color: oklch(52.4% 0.191 309.1);
Tailwind
colors: {
  custom: {
    50: '#b079d0',
    500: '#8a3fbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fbb;
$custom-light: #b079d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fbb",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 276.29,
    "s": 49.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52379,
    "c": 0.19082,
    "h": 309.1
  },
  "luminance": 0.12546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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