#7031AF#7031AF

#7031AF is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.189 H 302.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7031AF
RGBrgb(112, 49, 175)
HSLhsl(270, 56%, 44%)
HSVhsv(270, 72%, 69%)
CMYKcmyk(36%, 72%, 0%, 31.4%)
CIE-LABlab(35.47, 51.41, -56.17)
CIE-LCHlch(35.47, 76.14, 312.46°)
OKLaboklab(46.66% 0.1013 -0.16)
OKLCHoklch(46.66% 0.189 302.3)
XYZxyz(15.5164, 8.7365, 41.4180)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031AF #70AF31
analogous
#3131AF #7031AF #AF31AF
triadic
#7031AF #AF7031 #31AF70
tetradic
#7031AF #AF3131 #70AF31 #31AFAF
square
#7031AF #AF3131 #70AF31 #31AFAF
split-complementary
#7031AF #AFAF31 #31AF31
monochromatic
#33164F #51247F #7031AF #8F4FCE #AD7FDB

Accessibility & contrast

On white

7.64
#7031AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7031AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7031AF#FFFFFF#000000##FFFFFF
##7031AF1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#634F6D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7031af;
/* rgb */ color: rgb(112, 49, 175);
/* oklch */ color: oklch(46.7% 0.189 302.3);
Tailwind
colors: {
  custom: {
    50: '#9e6fc8',
    500: '#7031af',
    950: '#000000',
  },
}
SCSS
$custom: #7031af;
$custom-light: #9e6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7031af",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 270,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46661,
    "c": 0.18941,
    "h": 302.3
  },
  "luminance": 0.08737
}

Semantic roles & 50–950 ramp

primary
#7031AF
secondary
#9EC478
accent
#E04894
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7031AF

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

Preview Lab → · Contrast checker → · Palette generator →

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