#7D31CA#7D31CA

#7D31CA is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.220 H 301.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7D31CA
RGBrgb(125, 49, 202)
HSLhsl(270, 61%, 49%)
HSVhsv(270, 76%, 79%)
CMYKcmyk(38.1%, 75.7%, 0%, 20.8%)
CIE-LABlab(39.28, 60.19, -65.78)
CIE-LCHlch(39.28, 89.16, 312.46°)
OKLaboklab(50.37% 0.114 -0.1878)
OKLCHoklch(50.37% 0.22 301.3)
XYZxyz(20.2138, 10.8207, 56.8893)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31CA #7ECA31
analogous
#3132CA #7D31CA #CA31CA
triadic
#7D31CA #CA7D31 #31CA7D
tetradic
#7D31CA #CA3132 #7ECA31 #31CACA
square
#7D31CA #CA3132 #7ECA31 #31CACA
split-complementary
#7D31CA #CACA31 #32CA31
monochromatic
#401967 #5F2599 #7D31CA #9C60D8 #BA91E4

Accessibility & contrast

On white

6.64
#7D31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7D31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31CA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31CA#FFFFFF#000000##FFFFFF
##7D31CA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#6C597C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d31ca;
/* rgb */ color: rgb(125, 49, 202);
/* oklch */ color: oklch(50.4% 0.220 301.3);
Tailwind
colors: {
  custom: {
    50: '#a971db',
    500: '#7d31ca',
    950: '#000000',
  },
}
SCSS
$custom: #7d31ca;
$custom-light: #a971db;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31ca",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 269.804,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50374,
    "c": 0.2197,
    "h": 301.3
  },
  "luminance": 0.10821
}

Semantic roles & 50–950 ramp

primary
#7D31CA
secondary
#ACCF88
accent
#E44494
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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