#7D31B5#7D31B5

#7D31B5 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.7% C 0.199 H 306.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7D31B5
RGBrgb(125, 49, 181)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 73%, 71%)
CMYKcmyk(30.9%, 72.9%, 0%, 29%)
CIE-LABlab(37.65, 55.32, -56.12)
CIE-LCHlch(37.65, 78.80, 314.59°)
OKLaboklab(48.72% 0.1184 -0.1594)
OKLCHoklch(48.72% 0.199 306.6)
XYZxyz(17.8944, 9.8930, 44.6739)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31B5 #69B531
analogous
#3B31B5 #7D31B5 #B531AB
triadic
#7D31B5 #B57D31 #31B57D
tetradic
#7D31B5 #B53B31 #69B531 #31ABB5
square
#7D31B5 #B53B31 #69B531 #31ABB5
split-complementary
#7D31B5 #ABB531 #31B53B
monochromatic
#3A1755 #5C2485 #7D31B5 #9B53D0 #B783DD

Accessibility & contrast

On white

7.05
#7D31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7D31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D31B5
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31B5#FFFFFF#000000##FFFFFF
##7D31B51.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#735070
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d31b5;
/* rgb */ color: rgb(125, 49, 181);
/* oklch */ color: oklch(48.7% 0.199 306.6);
Tailwind
colors: {
  custom: {
    50: '#a870cc',
    500: '#7d31b5',
    950: '#000000',
  },
}
SCSS
$custom: #7d31b5;
$custom-light: #a870cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31b5",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 274.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48718,
    "c": 0.19857,
    "h": 306.6
  },
  "luminance": 0.09893
}

Semantic roles & 50–950 ramp

primary
#7D31B5
secondary
#9BC77B
accent
#E14788
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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