#7031AC#7031AC

#7031AC is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.186 H 303.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7031AC
RGBrgb(112, 49, 172)
HSLhsl(271, 56%, 43%)
HSVhsv(271, 72%, 67%)
CMYKcmyk(34.9%, 71.5%, 0%, 32.5%)
CIE-LABlab(35.24, 50.68, -54.75)
CIE-LCHlch(35.24, 74.60, 312.79°)
OKLaboklab(46.43% 0.1019 -0.1559)
OKLCHoklch(46.43% 0.186 303.2)
XYZxyz(15.2251, 8.6199, 39.8834)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031AC #6DAC31
analogous
#3331AC #7031AC #AC31AA
triadic
#7031AC #AC7031 #31AC70
tetradic
#7031AC #AC3331 #6DAC31 #31AAAC
square
#7031AC #AC3331 #6DAC31 #31AAAC
split-complementary
#7031AC #AAAC31 #31AC33
monochromatic
#32164D #51237C #7031AC #8F4ECC #AD7DDA

Accessibility & contrast

On white

7.71
#7031AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7031AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7031AC#FFFFFF#000000##FFFFFF
##7031AC1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#644E6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7031ac;
/* rgb */ color: rgb(112, 49, 172);
/* oklch */ color: oklch(46.4% 0.186 303.2);
Tailwind
colors: {
  custom: {
    50: '#9e6fc6',
    500: '#7031ac',
    950: '#000000',
  },
}
SCSS
$custom: #7031ac;
$custom-light: #9e6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7031ac",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 270.732,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46426,
    "c": 0.1862,
    "h": 303.2
  },
  "luminance": 0.0862
}

Semantic roles & 50–950 ramp

primary
#7031AC
secondary
#9BC376
accent
#DF4992
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7031AC

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

Preview Lab → · Contrast checker → · Palette generator →

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