#7D31A2#7D31A2

#7D31A2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.179 H 312.4°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7D31A2
RGBrgb(125, 49, 162)
HSLhsl(280, 54%, 41%)
HSVhsv(280, 70%, 64%)
CMYKcmyk(22.8%, 69.8%, 0%, 36.5%)
CIE-LABlab(36.30, 51.08, -46.96)
CIE-LCHlch(36.30, 69.38, 317.41°)
OKLaboklab(47.33% 0.121 -0.1325)
OKLCHoklch(47.33% 0.179 312.4)
XYZxyz(16.0762, 9.1657, 35.0977)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31A2 #56A231
analogous
#4531A2 #7D31A2 #A2318F
triadic
#7D31A2 #A27D31 #31A27D
tetradic
#7D31A2 #A24531 #56A231 #318FA2
square
#7D31A2 #A24531 #56A231 #318FA2
split-complementary
#7D31A2 #8FA231 #31A245
monochromatic
#341544 #592373 #7D31A2 #9E48C8 #B777D6

Accessibility & contrast

On white

7.41
#7D31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7D31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D31A2
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31A2#FFFFFF#000000##FFFFFF
##7D31A21.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#26579F
Tritanopia (blue-blind)
#794966
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d31a2;
/* rgb */ color: rgb(125, 49, 162);
/* oklch */ color: oklch(47.3% 0.179 312.4);
Tailwind
colors: {
  custom: {
    50: '#a66fbe',
    500: '#7d31a2',
    950: '#000000',
  },
}
SCSS
$custom: #7d31a2;
$custom-light: #a66fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31a2",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 280.354,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47332,
    "c": 0.17945,
    "h": 312.4
  },
  "luminance": 0.09165
}

Semantic roles & 50–950 ramp

primary
#7D31A2
secondary
#8ABE71
accent
#DD4B7B
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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