#8031B5#8031B5

#8031B5 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.1% C 0.199 H 307.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8031B5
RGBrgb(128, 49, 181)
HSLhsl(276, 57%, 45%)
HSVhsv(276, 73%, 71%)
CMYKcmyk(29.3%, 72.9%, 0%, 29%)
CIE-LABlab(38.06, 55.90, -55.43)
CIE-LCHlch(38.06, 78.72, 315.24°)
OKLaboklab(49.1% 0.1225 -0.1573)
OKLCHoklch(49.1% 0.199 307.9)
XYZxyz(18.3391, 10.1223, 44.6948)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031B5 #66B531
analogous
#3E31B5 #8031B5 #B531A8
triadic
#8031B5 #B58031 #31B580
tetradic
#8031B5 #B53E31 #66B531 #31A8B5
square
#8031B5 #B53E31 #66B531 #31A8B5
split-complementary
#8031B5 #A8B531 #31B53E
monochromatic
#3C1755 #5E2485 #8031B5 #9E53D0 #B983DD

Accessibility & contrast

On white

6.94
#8031B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8031B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031B5
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031B5#FFFFFF#000000##FFFFFF
##8031B51.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#015AB2
Tritanopia (blue-blind)
#775070
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8031b5;
/* rgb */ color: rgb(128, 49, 181);
/* oklch */ color: oklch(49.1% 0.199 307.9);
Tailwind
colors: {
  custom: {
    50: '#aa70cc',
    500: '#8031b5',
    950: '#000000',
  },
}
SCSS
$custom: #8031b5;
$custom-light: #aa70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8031b5",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 275.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49097,
    "c": 0.19936,
    "h": 307.9
  },
  "luminance": 0.10122
}

Semantic roles & 50–950 ramp

primary
#8031B5
secondary
#99C77B
accent
#E14785
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #8031B5

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

Preview Lab → · Contrast checker → · Palette generator →

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