#7E1F96#7E1F96

#7E1F96 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.189 H 318.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7E1F96
RGBrgb(126, 31, 150)
HSLhsl(288, 66%, 35%)
HSVhsv(288, 79%, 59%)
CMYKcmyk(16%, 79.3%, 0%, 41.2%)
CIE-LABlab(33.17, 55.81, -44.70)
CIE-LCHlch(33.17, 71.50, 321.30°)
OKLaboklab(44.88% 0.1415 -0.1257)
OKLCHoklch(44.88% 0.189 318.4)
XYZxyz(14.5984, 7.6183, 29.5498)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F96 #37961F
analogous
#421F96 #7E1F96 #961F72
triadic
#7E1F96 #967E1F #1F967E
tetradic
#7E1F96 #96421F #37961F #1F7296
square
#7E1F96 #96421F #37961F #1F7296
split-complementary
#7E1F96 #72961F #1F9642
monochromatic
#290A31 #531563 #7E1F96 #A929C9 #C054DC

Accessibility & contrast

On white

8.32
#7E1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7E1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F96
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F96#FFFFFF#000000##FFFFFF
##7E1F961.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#255193
Tritanopia (blue-blind)
#7D395A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1f96;
/* rgb */ color: rgb(126, 31, 150);
/* oklch */ color: oklch(44.9% 0.189 318.4);
Tailwind
colors: {
  custom: {
    50: '#a767b5',
    500: '#7e1f96',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f96;
$custom-light: #a767b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f96",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 287.899,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44881,
    "c": 0.18929,
    "h": 318.4
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#7E1F96
secondary
#68BF52
accent
#E93F61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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