#7031AA#7031AA

#7031AA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.184 H 303.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7031AA
RGBrgb(112, 49, 170)
HSLhsl(271, 55%, 43%)
HSVhsv(271, 71%, 67%)
CMYKcmyk(34.1%, 71.2%, 0%, 33.3%)
CIE-LABlab(35.09, 50.19, -53.80)
CIE-LCHlch(35.09, 73.58, 313.01°)
OKLaboklab(46.27% 0.1022 -0.1531)
OKLCHoklch(46.27% 0.184 303.7)
XYZxyz(15.0344, 8.5437, 38.8795)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031AA #6BAA31
analogous
#3431AA #7031AA #AA31A7
triadic
#7031AA #AA7031 #31AA70
tetradic
#7031AA #AA3431 #6BAA31 #31A7AA
square
#7031AA #AA3431 #6BAA31 #31A7AA
split-complementary
#7031AA #A7AA31 #31AA34
monochromatic
#31164B #51237A #7031AA #8F4DCC #AD7CD9

Accessibility & contrast

On white

7.75
#7031AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7031AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031AA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031AA#FFFFFF#000000##FFFFFF
##7031AA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#654E6A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7031aa;
/* rgb */ color: rgb(112, 49, 170);
/* oklch */ color: oklch(46.3% 0.184 303.7);
Tailwind
colors: {
  custom: {
    50: '#9e6ec4',
    500: '#7031aa',
    950: '#000000',
  },
}
SCSS
$custom: #7031aa;
$custom-light: #9e6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7031aa",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 271.24,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46271,
    "c": 0.18405,
    "h": 303.7
  },
  "luminance": 0.08544
}

Semantic roles & 50–950 ramp

primary
#7031AA
secondary
#9AC275
accent
#DF4991
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7031AA

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

Preview Lab → · Contrast checker → · Palette generator →

#7031AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva