#7D31B4#7D31B4

#7D31B4 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.6% C 0.198 H 306.9°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7D31B4
RGBrgb(125, 49, 180)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 73%, 71%)
CMYKcmyk(30.6%, 72.8%, 0%, 29.4%)
CIE-LABlab(37.58, 55.09, -55.64)
CIE-LCHlch(37.58, 78.30, 314.72°)
OKLaboklab(48.64% 0.1186 -0.158)
OKLCHoklch(48.64% 0.198 306.9)
XYZxyz(17.7922, 9.8521, 44.1355)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31B4 #68B431
analogous
#3B31B4 #7D31B4 #B431AA
triadic
#7D31B4 #B47D31 #31B47D
tetradic
#7D31B4 #B43B31 #68B431 #31AAB4
square
#7D31B4 #B43B31 #68B431 #31AAB4
split-complementary
#7D31B4 #AAB431 #31B43B
monochromatic
#3A1754 #5C2484 #7D31B4 #9B52D0 #B782DD

Accessibility & contrast

On white

7.07
#7D31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D31B4
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31B4#FFFFFF#000000##FFFFFF
##7D31B41.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#745070
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d31b4;
/* rgb */ color: rgb(125, 49, 180);
/* oklch */ color: oklch(48.6% 0.198 306.9);
Tailwind
colors: {
  custom: {
    50: '#a770cb',
    500: '#7d31b4',
    950: '#000000',
  },
}
SCSS
$custom: #7d31b4;
$custom-light: #a770cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31b4",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 274.809,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48643,
    "c": 0.19756,
    "h": 306.9
  },
  "luminance": 0.09852
}

Semantic roles & 50–950 ramp

primary
#7D31B4
secondary
#9AC67B
accent
#E04788
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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