#8A3FB2#8A3FB2

#8A3FB2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.181 H 311.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8A3FB2
RGBrgb(138, 63, 178)
HSLhsl(279, 48%, 47%)
HSVhsv(279, 65%, 70%)
CMYKcmyk(22.5%, 64.6%, 0%, 30.2%)
CIE-LABlab(41.49, 51.04, -48.06)
CIE-LCHlch(41.49, 70.10, 316.72°)
OKLaboklab(51.77% 0.1208 -0.1354)
OKLCHoklch(51.77% 0.181 311.7)
XYZxyz(20.2932, 12.1731, 43.3915)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB2 #67B23F
analogous
#503FB2 #8A3FB2 #B23FA1
triadic
#8A3FB2 #B28A3F #3FB28A
tetradic
#8A3FB2 #B2503F #67B23F #3FA1B2
square
#8A3FB2 #B2503F #67B23F #3FA1B2
split-complementary
#8A3FB2 #A1B23F #3FB250
monochromatic
#441F58 #672F85 #8A3FB2 #A666C9 #C093D9

Accessibility & contrast

On white

6.11
#8A3FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A3FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FB2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB2#FFFFFF#000000##FFFFFF
##8A3FB21.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3463AF
Tritanopia (blue-blind)
#855673
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3fb2;
/* rgb */ color: rgb(138, 63, 178);
/* oklch */ color: oklch(51.8% 0.181 311.7);
Tailwind
colors: {
  custom: {
    50: '#b079ca',
    500: '#8a3fb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb2;
$custom-light: #b079ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb2",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 279.13,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51774,
    "c": 0.18144,
    "h": 311.7
  },
  "luminance": 0.12173
}

Semantic roles & 50–950 ramp

primary
#8A3FB2
secondary
#9DC489
accent
#D7507F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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