#7F1EA4#7F1EA4

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

Color values

HEX#7F1EA4
RGBrgb(127, 30, 164)
HSLhsl(283, 69%, 38%)
HSVhsv(283, 82%, 64%)
CMYKcmyk(22.6%, 81.7%, 0%, 35.7%)
CIE-LABlab(34.23, 59.07, -51.48)
CIE-LCHlch(34.23, 78.36, 318.92°)
OKLaboklab(45.98% 0.1411 -0.1456)
OKLCHoklch(45.98% 0.203 314.1)
XYZxyz(15.9164, 8.1215, 35.8439)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1EA4 #43A41E
analogous
#3C1EA4 #7F1EA4 #A41E86
triadic
#7F1EA4 #A47F1E #1EA47F
tetradic
#7F1EA4 #A43C1E #43A41E #1E86A4
square
#7F1EA4 #A43C1E #43A41E #1E86A4
split-complementary
#7F1EA4 #86A41E #1EA43C
monochromatic
#2F0B3D #571570 #7F1EA4 #A728D8 #BC5BE1

Accessibility & contrast

On white

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

On black

2.62
#7F1EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7F1EA4#FFFFFF#000000##FFFFFF
##7F1EA41.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1ea4;
/* rgb */ color: rgb(127, 30, 164);
/* oklch */ color: oklch(46.0% 0.203 314.1);
Tailwind
colors: {
  custom: {
    50: '#a967c0',
    500: '#7f1ea4',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ea4;
$custom-light: #a967c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ea4",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 164
  },
  "hsl": {
    "h": 283.433,
    "s": 69.072,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45976,
    "c": 0.20272,
    "h": 314.1
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#7F1EA4
secondary
#77C559
accent
#EC3C6C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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