#8031CA#8031CA

#8031CA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.7% C 0.220 H 302.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8031CA
RGBrgb(128, 49, 202)
HSLhsl(271, 61%, 49%)
HSVhsv(271, 76%, 79%)
CMYKcmyk(36.6%, 75.7%, 0%, 20.8%)
CIE-LABlab(39.66, 60.69, -65.13)
CIE-LCHlch(39.66, 89.02, 312.98°)
OKLaboklab(50.73% 0.1182 -0.1858)
OKLCHoklch(50.73% 0.22 302.5)
XYZxyz(20.6585, 11.0500, 56.9102)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031CA #7BCA31
analogous
#3331CA #8031CA #CA31C8
triadic
#8031CA #CA8031 #31CA80
tetradic
#8031CA #CA3331 #7BCA31 #31C8CA
square
#8031CA #CA3331 #7BCA31 #31C8CA
split-complementary
#8031CA #C8CA31 #31CA33
monochromatic
#421967 #612599 #8031CA #9E60D8 #BC91E4

Accessibility & contrast

On white

6.54
#8031CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8031CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031CA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031CA#FFFFFF#000000##FFFFFF
##8031CA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#70597C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8031ca;
/* rgb */ color: rgb(128, 49, 202);
/* oklch */ color: oklch(50.7% 0.220 302.5);
Tailwind
colors: {
  custom: {
    50: '#ab71db',
    500: '#8031ca',
    950: '#000000',
  },
}
SCSS
$custom: #8031ca;
$custom-light: #ab71db;
$custom-dark: #000000;
JSON
{
  "hex": "#8031ca",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 270.98,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5073,
    "c": 0.22022,
    "h": 302.5
  },
  "luminance": 0.1105
}

Semantic roles & 50–950 ramp

primary
#8031CA
secondary
#AACF88
accent
#E44491
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8031CA

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

Preview Lab → · Contrast checker → · Palette generator →

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