#7D31B2#7D31B2

#7D31B2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.196 H 307.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7D31B2
RGBrgb(125, 49, 178)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 72%, 70%)
CMYKcmyk(29.8%, 72.5%, 0%, 30.2%)
CIE-LABlab(37.43, 54.64, -54.70)
CIE-LCHlch(37.43, 77.31, 314.97°)
OKLaboklab(48.49% 0.1189 -0.1552)
OKLCHoklch(48.49% 0.196 307.5)
XYZxyz(17.5899, 9.7712, 43.0702)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31B2 #66B231
analogous
#3D31B2 #7D31B2 #B231A7
triadic
#7D31B2 #B27D31 #31B27D
tetradic
#7D31B2 #B23D31 #66B231 #31A7B2
square
#7D31B2 #B23D31 #66B231 #31A7B2
split-complementary
#7D31B2 #A7B231 #31B23D
monochromatic
#3A1752 #5B2482 #7D31B2 #9B51CF #B781DC

Accessibility & contrast

On white

7.11
#7D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7D31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D31B2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31B2#FFFFFF#000000##FFFFFF
##7D31B21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0159AF
Tritanopia (blue-blind)
#744F6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d31b2;
/* rgb */ color: rgb(125, 49, 178);
/* oklch */ color: oklch(48.5% 0.196 307.5);
Tailwind
colors: {
  custom: {
    50: '#a770ca',
    500: '#7d31b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d31b2;
$custom-light: #a770ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31b2",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 275.349,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48492,
    "c": 0.19555,
    "h": 307.5
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#7D31B2
secondary
#99C579
accent
#E04886
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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