#7D1FA1#7D1FA1

#7D1FA1 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.199 H 314.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7D1FA1
RGBrgb(125, 31, 161)
HSLhsl(283, 68%, 38%)
HSVhsv(283, 81%, 63%)
CMYKcmyk(22.4%, 80.7%, 0%, 36.9%)
CIE-LABlab(33.80, 57.79, -50.39)
CIE-LCHlch(33.80, 76.68, 318.92°)
OKLaboklab(45.54% 0.1383 -0.1425)
OKLCHoklch(45.54% 0.199 314.2)
XYZxyz(15.3794, 7.9137, 34.4287)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1FA1 #43A11F
analogous
#3C1FA1 #7D1FA1 #A11F84
triadic
#7D1FA1 #A17D1F #1FA17D
tetradic
#7D1FA1 #A13C1F #43A11F #1F84A1
square
#7D1FA1 #A13C1F #43A11F #1F84A1
split-complementary
#7D1FA1 #84A11F #1FA13C
monochromatic
#2D0B3A #55156E #7D1FA1 #A529D4 #BB5BDF

Accessibility & contrast

On white

8.13
#7D1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7D1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1FA1
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1FA1#FFFFFF#000000##FFFFFF
##7D1FA11.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#12529E
Tritanopia (blue-blind)
#793F61
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1fa1;
/* rgb */ color: rgb(125, 31, 161);
/* oklch */ color: oklch(45.5% 0.199 314.2);
Tailwind
colors: {
  custom: {
    50: '#a767be',
    500: '#7d1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7d1fa1;
$custom-light: #a767be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1fa1",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 283.385,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.19855,
    "h": 314.2
  },
  "luminance": 0.07913
}

Semantic roles & 50–950 ramp

primary
#7D1FA1
secondary
#76C458
accent
#EB3D6D
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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