#7E1FA8#7E1FA8

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

Color values

HEX#7E1FA8
RGBrgb(126, 31, 168)
HSLhsl(282, 69%, 39%)
HSVhsv(282, 82%, 66%)
CMYKcmyk(25%, 81.5%, 0%, 34.1%)
CIE-LABlab(34.48, 59.39, -53.49)
CIE-LCHlch(34.48, 79.93, 317.99°)
OKLaboklab(46.21% 0.1381 -0.1515)
OKLCHoklch(46.21% 0.205 312.3)
XYZxyz(16.1608, 8.2432, 37.7780)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FA8 #49A81F
analogous
#3A1FA8 #7E1FA8 #A81F8E
triadic
#7E1FA8 #A87E1F #1FA87E
tetradic
#7E1FA8 #A83A1F #49A81F #1F8EA8
square
#7E1FA8 #A83A1F #49A81F #1F8EA8
split-complementary
#7E1FA8 #8EA81F #1FA83A
monochromatic
#310C41 #571574 #7E1FA8 #A32CD8 #BA60E2

Accessibility & contrast

On white

7.93
#7E1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1FA8
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FA8#FFFFFF#000000##FFFFFF
##7E1FA81.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#794265
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e1fa8;
/* rgb */ color: rgb(126, 31, 168);
/* oklch */ color: oklch(46.2% 0.205 312.3);
Tailwind
colors: {
  custom: {
    50: '#a868c3',
    500: '#7e1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fa8;
$custom-light: #a868c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fa8",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 281.606,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46214,
    "c": 0.20504,
    "h": 312.3
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#7E1FA8
secondary
#7DC65D
accent
#EC3C72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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