#7D1FA8#7D1FA8

#7D1FA8 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.205 H 311.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7D1FA8
RGBrgb(125, 31, 168)
HSLhsl(281, 69%, 39%)
HSVhsv(281, 82%, 66%)
CMYKcmyk(25.6%, 81.5%, 0%, 34.1%)
CIE-LABlab(34.33, 59.22, -53.75)
CIE-LCHlch(34.33, 79.98, 317.77°)
OKLaboklab(46.07% 0.1368 -0.1523)
OKLCHoklch(46.07% 0.205 311.9)
XYZxyz(16.0140, 8.1676, 37.7711)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1FA8 #4AA81F
analogous
#391FA8 #7D1FA8 #A81F8F
triadic
#7D1FA8 #A87D1F #1FA87D
tetradic
#7D1FA8 #A8391F #4AA81F #1F8FA8
square
#7D1FA8 #A8391F #4AA81F #1F8FA8
split-complementary
#7D1FA8 #8FA81F #1FA839
monochromatic
#300C41 #571574 #7D1FA8 #A22CD8 #B960E2

Accessibility & contrast

On white

7.97
#7D1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1FA8
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1FA8#FFFFFF#000000##FFFFFF
##7D1FA81.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#784265
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d1fa8;
/* rgb */ color: rgb(125, 31, 168);
/* oklch */ color: oklch(46.1% 0.205 311.9);
Tailwind
colors: {
  custom: {
    50: '#a868c3',
    500: '#7d1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7d1fa8;
$custom-light: #a868c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1fa8",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 281.168,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46074,
    "c": 0.20473,
    "h": 311.9
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#7D1FA8
secondary
#7EC65D
accent
#EC3C73
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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