#8031CF#8031CF

#8031CF is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.1% C 0.225 H 301.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8031CF
RGBrgb(128, 49, 207)
HSLhsl(270, 62%, 50%)
HSVhsv(270, 76%, 81%)
CMYKcmyk(38.2%, 76.3%, 0%, 18.8%)
CIE-LABlab(40.07, 61.85, -67.37)
CIE-LCHlch(40.07, 91.46, 312.55°)
OKLaboklab(51.14% 0.117 -0.1924)
OKLCHoklch(51.14% 0.225 301.3)
XYZxyz(21.2601, 11.2907, 60.0786)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8031CF #80CF31
analogous
#3131CF #8031CF #CF31CF
triadic
#8031CF #CF8031 #31CF80
tetradic
#8031CF #CF3131 #80CF31 #31CFCF
square
#8031CF #CF3131 #80CF31 #31CFCF
split-complementary
#8031CF #CFCF31 #31CF31
monochromatic
#43196C #61259E #8031CF #9F63DB #BD94E6

Accessibility & contrast

On white

6.45
#8031CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8031CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8031CF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8031CF#FFFFFF#000000##FFFFFF
##8031CF1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#6E5B7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8031cf;
/* rgb */ color: rgb(128, 49, 207);
/* oklch */ color: oklch(51.1% 0.225 301.3);
Tailwind
colors: {
  custom: {
    50: '#ac72df',
    500: '#8031cf',
    950: '#000000',
  },
}
SCSS
$custom: #8031cf;
$custom-light: #ac72df;
$custom-dark: #000000;
JSON
{
  "hex": "#8031cf",
  "rgb": {
    "r": 128,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 270,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51136,
    "c": 0.22517,
    "h": 301.3
  },
  "luminance": 0.11291
}

Semantic roles & 50–950 ramp

primary
#8031CF
secondary
#AED18B
accent
#E54394
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8031CF

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

Preview Lab → · Contrast checker → · Palette generator →

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