#7D31BC#7D31BC

#7D31BC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.206 H 304.7°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7D31BC
RGBrgb(125, 49, 188)
HSLhsl(273, 59%, 46%)
HSVhsv(273, 74%, 74%)
CMYKcmyk(33.5%, 73.9%, 0%, 26.3%)
CIE-LABlab(38.18, 56.93, -59.39)
CIE-LCHlch(38.18, 82.27, 313.79°)
OKLaboklab(49.26% 0.1171 -0.169)
OKLCHoklch(49.26% 0.206 304.7)
XYZxyz(18.6308, 10.1875, 48.5521)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31BC #70BC31
analogous
#3831BC #7D31BC #BC31B6
triadic
#7D31BC #BC7D31 #31BC7D
tetradic
#7D31BC #BC3831 #70BC31 #31B6BC
square
#7D31BC #BC3831 #70BC31 #31B6BC
split-complementary
#7D31BC #B6BC31 #31BC38
monochromatic
#3C185B #5D248B #7D31BC #9B57D3 #B888E0

Accessibility & contrast

On white

6.91
#7D31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7D31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31BC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31BC#FFFFFF#000000##FFFFFF
##7D31BC1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#715374
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d31bc;
/* rgb */ color: rgb(125, 49, 188);
/* oklch */ color: oklch(49.3% 0.206 304.7);
Tailwind
colors: {
  custom: {
    50: '#a870d1',
    500: '#7d31bc',
    950: '#000000',
  },
}
SCSS
$custom: #7d31bc;
$custom-light: #a870d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31bc",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 272.806,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49257,
    "c": 0.20562,
    "h": 304.7
  },
  "luminance": 0.10187
}

Semantic roles & 50–950 ramp

primary
#7D31BC
secondary
#A1CA7F
accent
#E2468D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7D31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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