#7F1EA1#7F1EA1

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

Color values

HEX#7F1EA1
RGBrgb(127, 30, 161)
HSLhsl(284, 69%, 37%)
HSVhsv(284, 81%, 63%)
CMYKcmyk(21.1%, 81.4%, 0%, 36.9%)
CIE-LABlab(34.01, 58.47, -50.03)
CIE-LCHlch(34.01, 76.95, 319.45°)
OKLaboklab(45.75% 0.1417 -0.1413)
OKLCHoklch(45.75% 0.2 315.1)
XYZxyz(15.6486, 8.0144, 34.4339)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1EA1 #40A11E
analogous
#3D1EA1 #7F1EA1 #A11E82
triadic
#7F1EA1 #A17F1E #1EA17F
tetradic
#7F1EA1 #A13D1E #40A11E #1E82A1
square
#7F1EA1 #A13D1E #40A11E #1E82A1
split-complementary
#7F1EA1 #82A11E #1EA13D
monochromatic
#2E0B3A #56146D #7F1EA1 #A828D5 #BD59E0

Accessibility & contrast

On white

8.07
#7F1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1EA1
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1EA1#FFFFFF#000000##FFFFFF
##7F1EA11.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#16529E
Tritanopia (blue-blind)
#7C3E61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f1ea1;
/* rgb */ color: rgb(127, 30, 161);
/* oklch */ color: oklch(45.8% 0.200 315.1);
Tailwind
colors: {
  custom: {
    50: '#a967be',
    500: '#7f1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ea1;
$custom-light: #a967be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ea1",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 284.427,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.20011,
    "h": 315.1
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#7F1EA1
secondary
#73C457
accent
#EB3C6A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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