#7D31CF#7D31CF

#7D31CF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.8% C 0.225 H 300.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7D31CF
RGBrgb(125, 49, 207)
HSLhsl(269, 62%, 50%)
HSVhsv(269, 76%, 81%)
CMYKcmyk(39.6%, 76.3%, 0%, 18.8%)
CIE-LABlab(39.68, 61.37, -68.01)
CIE-LCHlch(39.68, 91.61, 312.06°)
OKLaboklab(50.79% 0.1128 -0.1944)
OKLCHoklch(50.79% 0.225 300.1)
XYZxyz(20.8154, 11.0614, 60.0578)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31CF #83CF31
analogous
#3134CF #7D31CF #CC31CF
triadic
#7D31CF #CF7D31 #31CF7D
tetradic
#7D31CF #CF3134 #83CF31 #31CFCC
square
#7D31CF #CF3134 #83CF31 #31CFCC
split-complementary
#7D31CF #CFCC31 #34CF31
monochromatic
#41196C #5F259E #7D31CF #9C63DB #BC94E6

Accessibility & contrast

On white

6.54
#7D31CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7D31CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31CF
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31CF#FFFFFF#000000##FFFFFF
##7D31CF1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#6A5B7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7d31cf;
/* rgb */ color: rgb(125, 49, 207);
/* oklch */ color: oklch(50.8% 0.225 300.1);
Tailwind
colors: {
  custom: {
    50: '#aa71df',
    500: '#7d31cf',
    950: '#000000',
  },
}
SCSS
$custom: #7d31cf;
$custom-light: #aa71df;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31cf",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 268.861,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50785,
    "c": 0.22471,
    "h": 300.1
  },
  "luminance": 0.11062
}

Semantic roles & 50–950 ramp

primary
#7D31CF
secondary
#AFD18B
accent
#E54397
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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