#7D31BD#7D31BD

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

Color values

HEX#7D31BD
RGBrgb(125, 49, 189)
HSLhsl(273, 59%, 47%)
HSVhsv(273, 74%, 74%)
CMYKcmyk(33.9%, 74.1%, 0%, 25.9%)
CIE-LABlab(38.25, 57.16, -59.85)
CIE-LCHlch(38.25, 82.76, 313.68°)
OKLaboklab(49.34% 0.1169 -0.1704)
OKLCHoklch(49.34% 0.207 304.4)
XYZxyz(18.7390, 10.2308, 49.1218)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31BD #71BD31
analogous
#3731BD #7D31BD #BD31B7
triadic
#7D31BD #BD7D31 #31BD7D
tetradic
#7D31BD #BD3731 #71BD31 #31B7BD
square
#7D31BD #BD3731 #71BD31 #31B7BD
split-complementary
#7D31BD #B7BD31 #31BD37
monochromatic
#3D185C #5D248C #7D31BD #9B58D4 #B888E0

Accessibility & contrast

On white

6.89
#7D31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7D31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31BD
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31BD#FFFFFF#000000##FFFFFF
##7D31BD1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#715475
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d31bd;
/* rgb */ color: rgb(125, 49, 189);
/* oklch */ color: oklch(49.3% 0.207 304.4);
Tailwind
colors: {
  custom: {
    50: '#a871d2',
    500: '#7d31bd',
    950: '#000000',
  },
}
SCSS
$custom: #7d31bd;
$custom-light: #a871d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31bd",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 272.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49335,
    "c": 0.20662,
    "h": 304.4
  },
  "luminance": 0.10231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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