#7D31BF#7D31BF

#7D31BF is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.209 H 303.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7D31BF
RGBrgb(125, 49, 191)
HSLhsl(272, 59%, 47%)
HSVhsv(272, 74%, 75%)
CMYKcmyk(34.6%, 74.3%, 0%, 25.1%)
CIE-LABlab(38.41, 57.62, -60.77)
CIE-LCHlch(38.41, 83.75, 313.47°)
OKLaboklab(49.49% 0.1165 -0.1731)
OKLCHoklch(49.49% 0.209 303.9)
XYZxyz(18.9576, 10.3182, 50.2730)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31BF #73BF31
analogous
#3631BF #7D31BF #BF31BA
triadic
#7D31BF #BF7D31 #31BF7D
tetradic
#7D31BF #BF3631 #73BF31 #31BABF
square
#7D31BF #BF3631 #73BF31 #31BABF
split-complementary
#7D31BF #BABF31 #31BF36
monochromatic
#3D185E #5D258E #7D31BF #9B59D4 #B88AE1

Accessibility & contrast

On white

6.85
#7D31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7D31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31BF
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31BF#FFFFFF#000000##FFFFFF
##7D31BF1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#705476
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d31bf;
/* rgb */ color: rgb(125, 49, 191);
/* oklch */ color: oklch(49.5% 0.209 303.9);
Tailwind
colors: {
  custom: {
    50: '#a871d3',
    500: '#7d31bf',
    950: '#000000',
  },
}
SCSS
$custom: #7d31bf;
$custom-light: #a871d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31bf",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 272.113,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49492,
    "c": 0.20864,
    "h": 303.9
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#7D31BF
secondary
#A3CB81
accent
#E2458E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7D31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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