#7D1FA7#7D1FA7

#7D1FA7 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.204 H 312.2°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7D1FA7
RGBrgb(125, 31, 167)
HSLhsl(281, 69%, 39%)
HSVhsv(281, 81%, 65%)
CMYKcmyk(25.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(34.25, 59.02, -53.28)
CIE-LCHlch(34.25, 79.51, 317.93°)
OKLaboklab(46% 0.137 -0.1509)
OKLCHoklch(46% 0.204 312.2)
XYZxyz(15.9212, 8.1304, 37.2824)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1FA7 #49A71F
analogous
#391FA7 #7D1FA7 #A71F8D
triadic
#7D1FA7 #A77D1F #1FA77D
tetradic
#7D1FA7 #A7391F #49A71F #1F8DA7
square
#7D1FA7 #A7391F #49A71F #1F8DA7
split-complementary
#7D1FA7 #8DA71F #1FA739
monochromatic
#300C40 #561573 #7D1FA7 #A32BD8 #B95FE1

Accessibility & contrast

On white

8.00
#7D1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1FA7
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1FA7#FFFFFF#000000##FFFFFF
##7D1FA71.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#784264
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d1fa7;
/* rgb */ color: rgb(125, 31, 167);
/* oklch */ color: oklch(46.0% 0.204 312.2);
Tailwind
colors: {
  custom: {
    50: '#a767c2',
    500: '#7d1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7d1fa7;
$custom-light: #a767c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1fa7",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 281.471,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45997,
    "c": 0.20385,
    "h": 312.2
  },
  "luminance": 0.0813
}

Semantic roles & 50–950 ramp

primary
#7D1FA7
secondary
#7DC65C
accent
#EC3C72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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