#7D31B3#7D31B3

#7D31B3 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.197 H 307.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7D31B3
RGBrgb(125, 49, 179)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 73%, 70%)
CMYKcmyk(30.2%, 72.6%, 0%, 29.8%)
CIE-LABlab(37.50, 54.87, -55.17)
CIE-LCHlch(37.50, 77.81, 314.84°)
OKLaboklab(48.57% 0.1187 -0.1566)
OKLCHoklch(48.57% 0.197 307.2)
XYZxyz(17.6907, 9.8115, 43.6009)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31B3 #67B331
analogous
#3C31B3 #7D31B3 #B331A8
triadic
#7D31B3 #B37D31 #31B37D
tetradic
#7D31B3 #B33C31 #67B331 #31A8B3
square
#7D31B3 #B33C31 #67B331 #31A8B3
split-complementary
#7D31B3 #A8B331 #31B33C
monochromatic
#3A1753 #5B2483 #7D31B3 #9B52D0 #B782DD

Accessibility & contrast

On white

7.09
#7D31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7D31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D31B3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31B3#FFFFFF#000000##FFFFFF
##7D31B31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#744F6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d31b3;
/* rgb */ color: rgb(125, 49, 179);
/* oklch */ color: oklch(48.6% 0.197 307.2);
Tailwind
colors: {
  custom: {
    50: '#a770cb',
    500: '#7d31b3',
    950: '#000000',
  },
}
SCSS
$custom: #7d31b3;
$custom-light: #a770cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31b3",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 275.077,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48567,
    "c": 0.19655,
    "h": 307.2
  },
  "luminance": 0.09811
}

Semantic roles & 50–950 ramp

primary
#7D31B3
secondary
#99C67A
accent
#E04887
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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