#7D31B9#7D31B9

#7D31B9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.203 H 305.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7D31B9
RGBrgb(125, 49, 185)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(32.4%, 73.5%, 0%, 27.5%)
CIE-LABlab(37.95, 56.24, -57.99)
CIE-LCHlch(37.95, 80.78, 314.12°)
OKLaboklab(49.02% 0.1177 -0.1649)
OKLCHoklch(49.02% 0.203 305.5)
XYZxyz(18.3108, 10.0595, 46.8666)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31B9 #6DB931
analogous
#3931B9 #7D31B9 #B931B1
triadic
#7D31B9 #B97D31 #31B97D
tetradic
#7D31B9 #B93931 #6DB931 #31B1B9
square
#7D31B9 #B93931 #6DB931 #31B1B9
split-complementary
#7D31B9 #B1B931 #31B939
monochromatic
#3C1758 #5C2489 #7D31B9 #9B55D2 #B786DF

Accessibility & contrast

On white

6.97
#7D31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7D31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31B9
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31B9#FFFFFF#000000##FFFFFF
##7D31B91.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#725272
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d31b9;
/* rgb */ color: rgb(125, 49, 185);
/* oklch */ color: oklch(49.0% 0.203 305.5);
Tailwind
colors: {
  custom: {
    50: '#a870cf',
    500: '#7d31b9',
    950: '#000000',
  },
}
SCSS
$custom: #7d31b9;
$custom-light: #a870cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31b9",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 273.529,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49024,
    "c": 0.2026,
    "h": 305.5
  },
  "luminance": 0.10059
}

Semantic roles & 50–950 ramp

primary
#7D31B9
secondary
#9EC87D
accent
#E1468B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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