#7031AD#7031AD

#7031AD is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.187 H 302.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7031AD
RGBrgb(112, 49, 173)
HSLhsl(270, 56%, 44%)
HSVhsv(270, 72%, 68%)
CMYKcmyk(35.3%, 71.7%, 0%, 32.2%)
CIE-LABlab(35.32, 50.92, -55.23)
CIE-LCHlch(35.32, 75.12, 312.68°)
OKLaboklab(46.5% 0.1017 -0.1572)
OKLCHoklch(46.5% 0.187 302.9)
XYZxyz(15.3215, 8.6585, 40.3911)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031AD #6EAD31
analogous
#3231AD #7031AD #AD31AC
triadic
#7031AD #AD7031 #31AD70
tetradic
#7031AD #AD3231 #6EAD31 #31ACAD
square
#7031AD #AD3231 #6EAD31 #31ACAD
split-complementary
#7031AD #ACAD31 #31AD32
monochromatic
#32164E #51237D #7031AD #8F4ECD #AD7EDA

Accessibility & contrast

On white

7.69
#7031AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7031AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7031AD#FFFFFF#000000##FFFFFF
##7031AD1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#644F6C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7031ad;
/* rgb */ color: rgb(112, 49, 173);
/* oklch */ color: oklch(46.5% 0.187 302.9);
Tailwind
colors: {
  custom: {
    50: '#9e6fc6',
    500: '#7031ad',
    950: '#000000',
  },
}
SCSS
$custom: #7031ad;
$custom-light: #9e6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7031ad",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 270.484,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46504,
    "c": 0.18727,
    "h": 302.9
  },
  "luminance": 0.08659
}

Semantic roles & 50–950 ramp

primary
#7031AD
secondary
#9CC377
accent
#DF4993
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7031AD

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

Preview Lab → · Contrast checker → · Palette generator →

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