#8031B7#8031B7

#8031B7 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.201 H 307.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8031B7
RGBrgb(128, 49, 183)
HSLhsl(275, 58%, 45%)
HSVhsv(275, 73%, 72%)
CMYKcmyk(30.1%, 73.2%, 0%, 28.2%)
CIE-LABlab(38.21, 56.35, -56.37)
CIE-LCHlch(38.21, 79.71, 314.99°)
OKLaboklab(49.25% 0.1222 -0.1601)
OKLCHoklch(49.25% 0.201 307.3)
XYZxyz(18.5458, 10.2050, 45.7833)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031B7 #68B731
analogous
#3D31B7 #8031B7 #B731AB
triadic
#8031B7 #B78031 #31B780
tetradic
#8031B7 #B73D31 #68B731 #31ABB7
square
#8031B7 #B73D31 #68B731 #31ABB7
split-complementary
#8031B7 #ABB731 #31B73D
monochromatic
#3C1756 #5E2487 #8031B7 #9E54D1 #B984DE

Accessibility & contrast

On white

6.91
#8031B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8031B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031B7
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031B7#FFFFFF#000000##FFFFFF
##8031B71.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#775171
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8031b7;
/* rgb */ color: rgb(128, 49, 183);
/* oklch */ color: oklch(49.2% 0.201 307.3);
Tailwind
colors: {
  custom: {
    50: '#aa71cd',
    500: '#8031b7',
    950: '#000000',
  },
}
SCSS
$custom: #8031b7;
$custom-light: #aa71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8031b7",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 275.373,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49247,
    "c": 0.20135,
    "h": 307.3
  },
  "luminance": 0.10205
}

Semantic roles & 50–950 ramp

primary
#8031B7
secondary
#9BC87C
accent
#E14786
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #8031B7

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

Preview Lab → · Contrast checker → · Palette generator →

#8031B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva