#8A31B7#8A31B7

#8A31B7 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.204 H 311.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A31B7
RGBrgb(138, 49, 183)
HSLhsl(280, 58%, 45%)
HSVhsv(280, 73%, 72%)
CMYKcmyk(24.6%, 73.2%, 0%, 28.2%)
CIE-LABlab(39.61, 58.30, -54.03)
CIE-LCHlch(39.61, 79.49, 317.18°)
OKLaboklab(50.54% 0.1355 -0.1528)
OKLCHoklch(50.54% 0.204 311.6)
XYZxyz(20.1252, 11.0193, 45.8573)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B7 #5EB731
analogous
#4731B7 #8A31B7 #B731A1
triadic
#8A31B7 #B78A31 #31B78A
tetradic
#8A31B7 #B74731 #5EB731 #31A1B7
square
#8A31B7 #B74731 #5EB731 #31A1B7
split-complementary
#8A31B7 #A1B731 #31B747
monochromatic
#411756 #662487 #8A31B7 #A754D1 #C084DE

Accessibility & contrast

On white

6.55
#8A31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B7
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B7#FFFFFF#000000##FFFFFF
##8A31B71.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#1C5FB4
Tritanopia (blue-blind)
#844F71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a31b7;
/* rgb */ color: rgb(138, 49, 183);
/* oklch */ color: oklch(50.5% 0.204 311.6);
Tailwind
colors: {
  custom: {
    50: '#b172cd',
    500: '#8a31b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b7;
$custom-light: #b172cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b7",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 279.851,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50537,
    "c": 0.20425,
    "h": 311.6
  },
  "luminance": 0.11019
}

Semantic roles & 50–950 ramp

primary
#8A31B7
secondary
#96C87C
accent
#E1477B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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