#7F1DA4#7F1DA4

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

Color values

HEX#7F1DA4
RGBrgb(127, 29, 164)
HSLhsl(284, 70%, 38%)
HSVhsv(284, 82%, 64%)
CMYKcmyk(22.6%, 82.3%, 0%, 35.7%)
CIE-LABlab(34.13, 59.37, -51.65)
CIE-LCHlch(34.13, 78.69, 318.98°)
OKLaboklab(45.9% 0.1418 -0.1461)
OKLCHoklch(45.9% 0.204 314.1)
XYZxyz(15.8914, 8.0717, 35.8356)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1DA4 #42A41D
analogous
#3C1DA4 #7F1DA4 #A41D85
triadic
#7F1DA4 #A47F1D #1DA47F
tetradic
#7F1DA4 #A43C1D #42A41D #1D85A4
square
#7F1DA4 #A43C1D #42A41D #1D85A4
split-complementary
#7F1DA4 #85A41D #1DA43C
monochromatic
#2E0B3C #571470 #7F1DA4 #A726D8 #BC5AE2

Accessibility & contrast

On white

8.03
#7F1DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7F1DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1DA4
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1DA4#FFFFFF#000000##FFFFFF
##7F1DA41.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0D52A1
Tritanopia (blue-blind)
#7B3F62
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1da4;
/* rgb */ color: rgb(127, 29, 164);
/* oklch */ color: oklch(45.9% 0.204 314.1);
Tailwind
colors: {
  custom: {
    50: '#a967c0',
    500: '#7f1da4',
    950: '#000000',
  },
}
SCSS
$custom: #7f1da4;
$custom-light: #a967c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1da4",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 164
  },
  "hsl": {
    "h": 283.556,
    "s": 69.948,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45904,
    "c": 0.20358,
    "h": 314.1
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#7F1DA4
secondary
#75C657
accent
#ED3B6C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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