#7A31AF#7A31AF

#7A31AF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.192 H 307.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7A31AF
RGBrgb(122, 49, 175)
HSLhsl(275, 56%, 44%)
HSVhsv(275, 72%, 69%)
CMYKcmyk(30.3%, 72%, 0%, 31.4%)
CIE-LABlab(36.80, 53.36, -53.95)
CIE-LCHlch(36.80, 75.89, 314.68°)
OKLaboklab(47.89% 0.1153 -0.1532)
OKLCHoklch(47.89% 0.192 307)
XYZxyz(16.8606, 9.4295, 41.4810)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31AF #66AF31
analogous
#3B31AF #7A31AF #AF31A5
triadic
#7A31AF #AF7A31 #31AF7A
tetradic
#7A31AF #AF3B31 #66AF31 #31A5AF
square
#7A31AF #AF3B31 #66AF31 #31A5AF
split-complementary
#7A31AF #A5AF31 #31AF3B
monochromatic
#37164F #59247F #7A31AF #994FCE #B57FDB

Accessibility & contrast

On white

7.28
#7A31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31AF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31AF#FFFFFF#000000##FFFFFF
##7A31AF1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0157AC
Tritanopia (blue-blind)
#714E6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a31af;
/* rgb */ color: rgb(122, 49, 175);
/* oklch */ color: oklch(47.9% 0.192 307.0);
Tailwind
colors: {
  custom: {
    50: '#a570c8',
    500: '#7a31af',
    950: '#000000',
  },
}
SCSS
$custom: #7a31af;
$custom-light: #a570c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31af",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 274.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47889,
    "c": 0.1917,
    "h": 307
  },
  "luminance": 0.09429
}

Semantic roles & 50–950 ramp

primary
#7A31AF
secondary
#98C478
accent
#E04888
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A31AF

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

Preview Lab → · Contrast checker → · Palette generator →

#7A31AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva