#7D31B8#7D31B8

#7D31B8 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.202 H 305.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7D31B8
RGBrgb(125, 49, 184)
HSLhsl(274, 58%, 46%)
HSVhsv(274, 73%, 72%)
CMYKcmyk(32.1%, 73.4%, 0%, 27.8%)
CIE-LABlab(37.87, 56.01, -57.52)
CIE-LCHlch(37.87, 80.29, 314.23°)
OKLaboklab(48.95% 0.1179 -0.1635)
OKLCHoklch(48.95% 0.202 305.8)
XYZxyz(18.2056, 10.0174, 46.3126)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31B8 #6CB831
analogous
#3A31B8 #7D31B8 #B831AF
triadic
#7D31B8 #B87D31 #31B87D
tetradic
#7D31B8 #B83A31 #6CB831 #31AFB8
square
#7D31B8 #B83A31 #6CB831 #31AFB8
split-complementary
#7D31B8 #AFB831 #31B83A
monochromatic
#3B1757 #5C2488 #7D31B8 #9B55D2 #B785DE

Accessibility & contrast

On white

6.99
#7D31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7D31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31B8
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31B8#FFFFFF#000000##FFFFFF
##7D31B81.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#725172
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d31b8;
/* rgb */ color: rgb(125, 49, 184);
/* oklch */ color: oklch(48.9% 0.202 305.8);
Tailwind
colors: {
  custom: {
    50: '#a870ce',
    500: '#7d31b8',
    950: '#000000',
  },
}
SCSS
$custom: #7d31b8;
$custom-light: #a870ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31b8",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 273.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48947,
    "c": 0.20159,
    "h": 305.8
  },
  "luminance": 0.10017
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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