#8031E2#8031E2

#8031E2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.7% C 0.244 H 297.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8031E2
RGBrgb(128, 49, 226)
HSLhsl(267, 75%, 54%)
HSVhsv(267, 78%, 89%)
CMYKcmyk(43.4%, 78.3%, 0%, 11.4%)
CIE-LABlab(41.65, 66.31, -75.69)
CIE-LCHlch(41.65, 100.63, 311.22°)
OKLaboklab(52.73% 0.1119 -0.2168)
OKLCHoklch(52.73% 0.244 297.3)
XYZxyz(23.7243, 12.2763, 73.0564)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031E2 #93E231
analogous
#313BE2 #8031E2 #D931E2
triadic
#8031E2 #E28031 #31E280
tetradic
#8031E2 #E2313B #93E231 #31E2D9
square
#8031E2 #E2313B #93E231 #31E2D9
split-complementary
#8031E2 #E2D931 #3BE231
monochromatic
#461386 #621ABB #8031E2 #A167EA #C29CF1

Accessibility & contrast

On white

6.08
#8031E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8031E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031E2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031E2#FFFFFF#000000##FFFFFF
##8031E21.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#66638A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8031e2;
/* rgb */ color: rgb(128, 49, 226);
/* oklch */ color: oklch(52.7% 0.244 297.3);
Tailwind
colors: {
  custom: {
    50: '#ae73ec',
    500: '#8031e2',
    950: '#000000',
  },
}
SCSS
$custom: #8031e2;
$custom-light: #ae73ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8031e2",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 266.78,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52731,
    "c": 0.24395,
    "h": 297.3
  },
  "luminance": 0.12277
}

Semantic roles & 50–950 ramp

primary
#8031E2
secondary
#BBDD92
accent
#F2369E
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #8031E2

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

Preview Lab → · Contrast checker → · Palette generator →

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