#7D31BE#7D31BE

#7D31BE is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.208 H 304.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7D31BE
RGBrgb(125, 49, 190)
HSLhsl(272, 59%, 47%)
HSVhsv(272, 74%, 75%)
CMYKcmyk(34.2%, 74.2%, 0%, 25.5%)
CIE-LABlab(38.33, 57.39, -60.31)
CIE-LCHlch(38.33, 83.25, 313.58°)
OKLaboklab(49.41% 0.1167 -0.1718)
OKLCHoklch(49.41% 0.208 304.2)
XYZxyz(18.8479, 10.2744, 49.6954)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31BE #72BE31
analogous
#3631BE #7D31BE #BE31B9
triadic
#7D31BE #BE7D31 #31BE7D
tetradic
#7D31BE #BE3631 #72BE31 #31B9BE
square
#7D31BE #BE3631 #72BE31 #31B9BE
split-complementary
#7D31BE #B9BE31 #31BE36
monochromatic
#3D185D #5D248D #7D31BE #9B58D4 #B889E1

Accessibility & contrast

On white

6.87
#7D31BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7D31BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31BE
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31BE#FFFFFF#000000##FFFFFF
##7D31BE1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#705475
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d31be;
/* rgb */ color: rgb(125, 49, 190);
/* oklch */ color: oklch(49.4% 0.208 304.2);
Tailwind
colors: {
  custom: {
    50: '#a871d3',
    500: '#7d31be',
    950: '#000000',
  },
}
SCSS
$custom: #7d31be;
$custom-light: #a871d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31be",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 272.34,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49413,
    "c": 0.20763,
    "h": 304.2
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#7D31BE
secondary
#A3CA80
accent
#E2468E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7D31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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