#7D31BA#7D31BA

#7D31BA is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.204 H 305.2°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#7D31BA
RGBrgb(125, 49, 186)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 74%, 73%)
CMYKcmyk(32.8%, 73.7%, 0%, 27.1%)
CIE-LABlab(38.02, 56.47, -58.46)
CIE-LCHlch(38.02, 81.28, 314.01°)
OKLaboklab(49.1% 0.1175 -0.1663)
OKLCHoklch(49.1% 0.204 305.2)
XYZxyz(18.4167, 10.1019, 47.4245)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31BA #6EBA31
analogous
#3931BA #7D31BA #BA31B2
triadic
#7D31BA #BA7D31 #31BA7D
tetradic
#7D31BA #BA3931 #6EBA31 #31B2BA
square
#7D31BA #BA3931 #6EBA31 #31B2BA
split-complementary
#7D31BA #B2BA31 #31BA39
monochromatic
#3C1759 #5C248A #7D31BA #9B56D2 #B886DF

Accessibility & contrast

On white

6.95
#7D31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7D31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31BA
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31BA#FFFFFF#000000##FFFFFF
##7D31BA1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#725273
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d31ba;
/* rgb */ color: rgb(125, 49, 186);
/* oklch */ color: oklch(49.1% 0.204 305.2);
Tailwind
colors: {
  custom: {
    50: '#a870d0',
    500: '#7d31ba',
    950: '#000000',
  },
}
SCSS
$custom: #7d31ba;
$custom-light: #a870d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31ba",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 273.285,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49102,
    "c": 0.2036,
    "h": 305.2
  },
  "luminance": 0.10102
}

Semantic roles & 50–950 ramp

primary
#7D31BA
secondary
#9FC97E
accent
#E2468B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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