#7D31BB#7D31BB

#7D31BB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.205 H 305.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7D31BB
RGBrgb(125, 49, 187)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 74%, 73%)
CMYKcmyk(33.2%, 73.8%, 0%, 26.7%)
CIE-LABlab(38.10, 56.70, -58.92)
CIE-LCHlch(38.10, 81.77, 313.90°)
OKLaboklab(49.18% 0.1173 -0.1677)
OKLCHoklch(49.18% 0.205 305)
XYZxyz(18.5234, 10.1446, 47.9863)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31BB #6FBB31
analogous
#3831BB #7D31BB #BB31B4
triadic
#7D31BB #BB7D31 #31BB7D
tetradic
#7D31BB #BB3831 #6FBB31 #31B4BB
square
#7D31BB #BB3831 #6FBB31 #31B4BB
split-complementary
#7D31BB #B4BB31 #31BB38
monochromatic
#3C185A #5D248B #7D31BB #9B56D3 #B887E0

Accessibility & contrast

On white

6.93
#7D31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7D31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31BB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31BB#FFFFFF#000000##FFFFFF
##7D31BB1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#715374
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d31bb;
/* rgb */ color: rgb(125, 49, 187);
/* oklch */ color: oklch(49.2% 0.205 305.0);
Tailwind
colors: {
  custom: {
    50: '#a870d0',
    500: '#7d31bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d31bb;
$custom-light: #a870d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31bb",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 273.043,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49179,
    "c": 0.20461,
    "h": 305
  },
  "luminance": 0.10144
}

Semantic roles & 50–950 ramp

primary
#7D31BB
secondary
#A0C97F
accent
#E2468C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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