#7F1DA1#7F1DA1

#7F1DA1 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.7% C 0.201 H 315.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7F1DA1
RGBrgb(127, 29, 161)
HSLhsl(285, 69%, 37%)
HSVhsv(285, 82%, 63%)
CMYKcmyk(21.1%, 82%, 0%, 36.9%)
CIE-LABlab(33.91, 58.77, -50.20)
CIE-LCHlch(33.91, 77.29, 319.50°)
OKLaboklab(45.68% 0.1424 -0.1418)
OKLCHoklch(45.68% 0.201 315.1)
XYZxyz(15.6237, 7.9646, 34.4256)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1DA1 #3FA11D
analogous
#3D1DA1 #7F1DA1 #A11D81
triadic
#7F1DA1 #A17F1D #1DA17F
tetradic
#7F1DA1 #A13D1D #3FA11D #1D81A1
square
#7F1DA1 #A13D1D #3FA11D #1D81A1
split-complementary
#7F1DA1 #81A11D #1DA13D
monochromatic
#2D0A39 #56146D #7F1DA1 #A826D5 #BD58E1

Accessibility & contrast

On white

8.10
#7F1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1DA1
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1DA1#FFFFFF#000000##FFFFFF
##7F1DA11.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#15529E
Tritanopia (blue-blind)
#7C3D60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1da1;
/* rgb */ color: rgb(127, 29, 161);
/* oklch */ color: oklch(45.7% 0.201 315.1);
Tailwind
colors: {
  custom: {
    50: '#a967be',
    500: '#7f1da1',
    950: '#000000',
  },
}
SCSS
$custom: #7f1da1;
$custom-light: #a967be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1da1",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 284.545,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45678,
    "c": 0.20099,
    "h": 315.1
  },
  "luminance": 0.07964
}

Semantic roles & 50–950 ramp

primary
#7F1DA1
secondary
#72C455
accent
#EC3C69
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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