#7F1EA6#7F1EA6

#7F1EA6 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.204 H 313.5°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7F1EA6
RGBrgb(127, 30, 166)
HSLhsl(283, 69%, 38%)
HSVhsv(283, 82%, 65%)
CMYKcmyk(23.5%, 81.9%, 0%, 34.9%)
CIE-LABlab(34.38, 59.47, -52.45)
CIE-LCHlch(34.38, 79.29, 318.59°)
OKLaboklab(46.13% 0.1406 -0.1484)
OKLCHoklch(46.13% 0.204 313.5)
XYZxyz(16.0984, 8.1943, 36.8026)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1EA6 #45A61E
analogous
#3B1EA6 #7F1EA6 #A61E89
triadic
#7F1EA6 #A67F1E #1EA67F
tetradic
#7F1EA6 #A63B1E #45A61E #1E89A6
square
#7F1EA6 #A63B1E #45A61E #1E89A6
split-complementary
#7F1EA6 #89A61E #1EA63B
monochromatic
#300B3E #571572 #7F1EA6 #A629D8 #BC5DE2

Accessibility & contrast

On white

7.96
#7F1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1EA6
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1EA6#FFFFFF#000000##FFFFFF
##7F1EA61.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0753A3
Tritanopia (blue-blind)
#7B4063
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f1ea6;
/* rgb */ color: rgb(127, 30, 166);
/* oklch */ color: oklch(46.1% 0.204 313.5);
Tailwind
colors: {
  custom: {
    50: '#a967c1',
    500: '#7f1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7f1ea6;
$custom-light: #a967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1ea6",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 282.794,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46128,
    "c": 0.20446,
    "h": 313.5
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#7F1EA6
secondary
#79C65A
accent
#EC3C6E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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