#8031BA#8031BA

#8031BA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.204 H 306.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#8031BA
RGBrgb(128, 49, 186)
HSLhsl(275, 58%, 46%)
HSVhsv(275, 74%, 73%)
CMYKcmyk(31.2%, 73.7%, 0%, 27.1%)
CIE-LABlab(38.43, 57.03, -57.78)
CIE-LCHlch(38.43, 81.18, 314.62°)
OKLaboklab(49.48% 0.1216 -0.1642)
OKLCHoklch(49.48% 0.204 306.5)
XYZxyz(18.8614, 10.3312, 47.4453)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031BA #6BBA31
analogous
#3C31BA #8031BA #BA31AF
triadic
#8031BA #BA8031 #31BA80
tetradic
#8031BA #BA3C31 #6BBA31 #31AFBA
square
#8031BA #BA3C31 #6BBA31 #31AFBA
split-complementary
#8031BA #AFBA31 #31BA3C
monochromatic
#3D1759 #5F248A #8031BA #9E56D2 #BA86DF

Accessibility & contrast

On white

6.85
#8031BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8031BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031BA
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031BA#FFFFFF#000000##FFFFFF
##8031BA1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#765273
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8031ba;
/* rgb */ color: rgb(128, 49, 186);
/* oklch */ color: oklch(49.5% 0.204 306.5);
Tailwind
colors: {
  custom: {
    50: '#aa71d0',
    500: '#8031ba',
    950: '#000000',
  },
}
SCSS
$custom: #8031ba;
$custom-light: #aa71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8031ba",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 274.599,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49475,
    "c": 0.20432,
    "h": 306.5
  },
  "luminance": 0.10331
}

Semantic roles & 50–950 ramp

primary
#8031BA
secondary
#9EC97E
accent
#E24688
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8031BA

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

Preview Lab → · Contrast checker → · Palette generator →

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