#7E1FA0#7E1FA0

#7E1FA0 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.198 H 314.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7E1FA0
RGBrgb(126, 31, 160)
HSLhsl(284, 68%, 37%)
HSVhsv(284, 81%, 63%)
CMYKcmyk(21.2%, 80.6%, 0%, 37.3%)
CIE-LABlab(33.89, 57.78, -49.64)
CIE-LCHlch(33.89, 76.17, 319.33°)
OKLaboklab(45.61% 0.1398 -0.1402)
OKLCHoklch(45.61% 0.198 314.9)
XYZxyz(15.4383, 7.9542, 33.9730)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FA0 #41A01F
analogous
#3E1FA0 #7E1FA0 #A01F82
triadic
#7E1FA0 #A07E1F #1FA07E
tetradic
#7E1FA0 #A03E1F #41A01F #1F82A0
square
#7E1FA0 #A03E1F #41A01F #1F82A0
split-complementary
#7E1FA0 #82A01F #1FA03E
monochromatic
#2D0B39 #56156D #7E1FA0 #A629D3 #BC5ADF

Accessibility & contrast

On white

8.11
#7E1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1FA0
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FA0#FFFFFF#000000##FFFFFF
##7E1FA01.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#16529D
Tritanopia (blue-blind)
#7B3E60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1fa0;
/* rgb */ color: rgb(126, 31, 160);
/* oklch */ color: oklch(45.6% 0.198 314.9);
Tailwind
colors: {
  custom: {
    50: '#a867bd',
    500: '#7e1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fa0;
$custom-light: #a867bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fa0",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 284.186,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45608,
    "c": 0.198,
    "h": 314.9
  },
  "luminance": 0.07954
}

Semantic roles & 50–950 ramp

primary
#7E1FA0
secondary
#74C358
accent
#EA3D6B
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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