#7A31B9#7A31B9

#7A31B9 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.202 H 304.2°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7A31B9
RGBrgb(122, 49, 185)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 74%, 73%)
CMYKcmyk(34.1%, 73.5%, 0%, 27.5%)
CIE-LABlab(37.55, 55.68, -58.66)
CIE-LCHlch(37.55, 80.88, 313.51°)
OKLaboklab(48.66% 0.1135 -0.167)
OKLCHoklch(48.66% 0.202 304.2)
XYZxyz(17.8793, 9.8370, 46.8463)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31B9 #70B931
analogous
#3631B9 #7A31B9 #B931B4
triadic
#7A31B9 #B97A31 #31B97A
tetradic
#7A31B9 #B93631 #70B931 #31B4B9
square
#7A31B9 #B93631 #70B931 #31B4B9
split-complementary
#7A31B9 #B4B931 #31B936
monochromatic
#3A1758 #5A2489 #7A31B9 #9855D2 #B586DF

Accessibility & contrast

On white

7.08
#7A31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7A31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31B9
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31B9#FFFFFF#000000##FFFFFF
##7A31B91.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#6E5272
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a31b9;
/* rgb */ color: rgb(122, 49, 185);
/* oklch */ color: oklch(48.7% 0.202 304.2);
Tailwind
colors: {
  custom: {
    50: '#a670cf',
    500: '#7a31b9',
    950: '#000000',
  },
}
SCSS
$custom: #7a31b9;
$custom-light: #a670cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31b9",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 272.206,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48655,
    "c": 0.20192,
    "h": 304.2
  },
  "luminance": 0.09837
}

Semantic roles & 50–950 ramp

primary
#7A31B9
secondary
#A0C87D
accent
#E1468E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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