#7A31B2#7A31B2

#7A31B2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.195 H 306.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7A31B2
RGBrgb(122, 49, 178)
HSLhsl(274, 57%, 45%)
HSVhsv(274, 72%, 70%)
CMYKcmyk(31.5%, 72.5%, 0%, 30.2%)
CIE-LABlab(37.02, 54.05, -55.38)
CIE-LCHlch(37.02, 77.38, 314.31°)
OKLaboklab(48.12% 0.1148 -0.1573)
OKLCHoklch(48.12% 0.195 306.1)
XYZxyz(17.1585, 9.5487, 43.0500)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31B2 #69B231
analogous
#3931B2 #7A31B2 #B231AA
triadic
#7A31B2 #B27A31 #31B27A
tetradic
#7A31B2 #B23931 #69B231 #31AAB2
square
#7A31B2 #B23931 #69B231 #31AAB2
split-complementary
#7A31B2 #AAB231 #31B239
monochromatic
#381752 #592482 #7A31B2 #9851CF #B581DC

Accessibility & contrast

On white

7.22
#7A31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7A31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31B2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31B2#FFFFFF#000000##FFFFFF
##7A31B21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#704F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a31b2;
/* rgb */ color: rgb(122, 49, 178);
/* oklch */ color: oklch(48.1% 0.195 306.1);
Tailwind
colors: {
  custom: {
    50: '#a570ca',
    500: '#7a31b2',
    950: '#000000',
  },
}
SCSS
$custom: #7a31b2;
$custom-light: #a570ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31b2",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 273.953,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48115,
    "c": 0.19476,
    "h": 306.1
  },
  "luminance": 0.09549
}

Semantic roles & 50–950 ramp

primary
#7A31B2
secondary
#9AC579
accent
#E0488A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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