#8031CC#8031CC

#8031CC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.222 H 302.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8031CC
RGBrgb(128, 49, 204)
HSLhsl(271, 61%, 50%)
HSVhsv(271, 76%, 80%)
CMYKcmyk(37.3%, 76%, 0%, 20%)
CIE-LABlab(39.82, 61.15, -66.03)
CIE-LCHlch(39.82, 90.00, 312.80°)
OKLaboklab(50.89% 0.1177 -0.1884)
OKLCHoklch(50.89% 0.222 302)
XYZxyz(20.8969, 11.1454, 58.1654)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031CC #7DCC31
analogous
#3331CC #8031CC #CC31CA
triadic
#8031CC #CC8031 #31CC80
tetradic
#8031CC #CC3331 #7DCC31 #31CACC
square
#8031CC #CC3331 #7DCC31 #31CACC
split-complementary
#8031CC #CACC31 #31CC33
monochromatic
#421969 #61259B #8031CC #9E61D9 #BC92E5

Accessibility & contrast

On white

6.50
#8031CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8031CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031CC
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031CC#FFFFFF#000000##FFFFFF
##8031CC1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#70597D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8031cc;
/* rgb */ color: rgb(128, 49, 204);
/* oklch */ color: oklch(50.9% 0.222 302.0);
Tailwind
colors: {
  custom: {
    50: '#ab72dd',
    500: '#8031cc',
    950: '#000000',
  },
}
SCSS
$custom: #8031cc;
$custom-light: #ab72dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8031cc",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 270.581,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50891,
    "c": 0.22221,
    "h": 302
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#8031CC
secondary
#ACD089
accent
#E44392
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8031CC

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

Preview Lab → · Contrast checker → · Palette generator →

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