#7E1FA7#7E1FA7

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

Color values

HEX#7E1FA7
RGBrgb(126, 31, 167)
HSLhsl(282, 69%, 39%)
HSVhsv(282, 81%, 65%)
CMYKcmyk(24.6%, 81.4%, 0%, 34.5%)
CIE-LABlab(34.41, 59.19, -53.02)
CIE-LCHlch(34.41, 79.46, 318.15°)
OKLaboklab(46.14% 0.1383 -0.1501)
OKLCHoklch(46.14% 0.204 312.7)
XYZxyz(16.0680, 8.2061, 37.2892)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FA7 #48A71F
analogous
#3A1FA7 #7E1FA7 #A71F8C
triadic
#7E1FA7 #A77E1F #1FA77E
tetradic
#7E1FA7 #A73A1F #48A71F #1F8CA7
square
#7E1FA7 #A73A1F #48A71F #1F8CA7
split-complementary
#7E1FA7 #8CA71F #1FA73A
monochromatic
#300C40 #571573 #7E1FA7 #A42BD8 #BA5FE1

Accessibility & contrast

On white

7.95
#7E1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1FA7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FA7#FFFFFF#000000##FFFFFF
##7E1FA71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0153A4
Tritanopia (blue-blind)
#794164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e1fa7;
/* rgb */ color: rgb(126, 31, 167);
/* oklch */ color: oklch(46.1% 0.204 312.7);
Tailwind
colors: {
  custom: {
    50: '#a868c2',
    500: '#7e1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fa7;
$custom-light: #a868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fa7",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 281.912,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.20416,
    "h": 312.7
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#7E1FA7
secondary
#7CC65C
accent
#EC3C71
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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