#8031B2#8031B2

#8031B2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.9% C 0.196 H 308.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8031B2
RGBrgb(128, 49, 178)
HSLhsl(277, 57%, 45%)
HSVhsv(277, 72%, 70%)
CMYKcmyk(28.1%, 72.5%, 0%, 30.2%)
CIE-LABlab(37.84, 55.23, -54.00)
CIE-LCHlch(37.84, 77.25, 315.64°)
OKLaboklab(48.87% 0.123 -0.1531)
OKLCHoklch(48.87% 0.196 308.8)
XYZxyz(18.0346, 10.0005, 43.0911)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031B2 #63B231
analogous
#4031B2 #8031B2 #B231A4
triadic
#8031B2 #B28031 #31B280
tetradic
#8031B2 #B24031 #63B231 #31A4B2
square
#8031B2 #B24031 #63B231 #31A4B2
split-complementary
#8031B2 #A4B231 #31B240
monochromatic
#3B1752 #5D2482 #8031B2 #9E51CF #B981DC

Accessibility & contrast

On white

7.00
#8031B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8031B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031B2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031B2#FFFFFF#000000##FFFFFF
##8031B21.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0E5AAF
Tritanopia (blue-blind)
#784F6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8031b2;
/* rgb */ color: rgb(128, 49, 178);
/* oklch */ color: oklch(48.9% 0.196 308.8);
Tailwind
colors: {
  custom: {
    50: '#a970ca',
    500: '#8031b2',
    950: '#000000',
  },
}
SCSS
$custom: #8031b2;
$custom-light: #a970ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8031b2",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 276.744,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48874,
    "c": 0.19637,
    "h": 308.8
  },
  "luminance": 0.1
}

Semantic roles & 50–950 ramp

primary
#8031B2
secondary
#97C579
accent
#E04883
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #8031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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