#7F1EA7#7F1EA7

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

Color values

HEX#7F1EA7
RGBrgb(127, 30, 167)
HSLhsl(282, 70%, 39%)
HSVhsv(282, 82%, 65%)
CMYKcmyk(24%, 82%, 0%, 34.5%)
CIE-LABlab(34.46, 59.67, -52.93)
CIE-LCHlch(34.46, 79.76, 318.43°)
OKLaboklab(46.2% 0.1404 -0.1498)
OKLCHoklch(46.2% 0.205 313.1)
XYZxyz(16.1905, 8.2311, 37.2876)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1EA7 #46A71E
analogous
#3A1EA7 #7F1EA7 #A71E8A
triadic
#7F1EA7 #A77F1E #1EA77F
tetradic
#7F1EA7 #A73A1E #46A71E #1E8AA7
square
#7F1EA7 #A73A1E #46A71E #1E8AA7
split-complementary
#7F1EA7 #8AA71E #1EA73A
monochromatic
#300B3F #581573 #7F1EA7 #A62AD9 #BB5DE2

Accessibility & contrast

On white

7.94
#7F1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1EA7
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1EA7#FFFFFF#000000##FFFFFF
##7F1EA71.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0353A4
Tritanopia (blue-blind)
#7B4164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1ea7;
/* rgb */ color: rgb(127, 30, 167);
/* oklch */ color: oklch(46.2% 0.205 313.1);
Tailwind
colors: {
  custom: {
    50: '#a967c2',
    500: '#7f1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ea7;
$custom-light: #a967c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ea7",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 282.482,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46204,
    "c": 0.20533,
    "h": 313.1
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#7F1EA7
secondary
#7AC65B
accent
#EC3B6F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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