#7E1F9A#7E1F9A

#7E1F9A is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.193 H 317.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7E1F9A
RGBrgb(126, 31, 154)
HSLhsl(286, 66%, 36%)
HSVhsv(286, 80%, 60%)
CMYKcmyk(18.2%, 79.9%, 0%, 39.6%)
CIE-LABlab(33.46, 56.59, -46.69)
CIE-LCHlch(33.46, 73.36, 320.47°)
OKLaboklab(45.17% 0.1409 -0.1316)
OKLCHoklch(45.17% 0.193 317)
XYZxyz(14.9260, 7.7493, 31.2751)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F9A #3B9A1F
analogous
#411F9A #7E1F9A #9A1F79
triadic
#7E1F9A #9A7E1F #1F9A7E
tetradic
#7E1F9A #9A411F #3B9A1F #1F799A
square
#7E1F9A #9A411F #3B9A1F #1F799A
split-complementary
#7E1F9A #799A1F #1F9A41
monochromatic
#2B0A34 #541567 #7E1F9A #A829CD #BE56DD

Accessibility & contrast

On white

8.24
#7E1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E1F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F9A
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F9A#FFFFFF#000000##FFFFFF
##7E1F9A1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#205197
Tritanopia (blue-blind)
#7C3B5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1f9a;
/* rgb */ color: rgb(126, 31, 154);
/* oklch */ color: oklch(45.2% 0.193 317.0);
Tailwind
colors: {
  custom: {
    50: '#a867b8',
    500: '#7e1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f9a;
$custom-light: #a867b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f9a",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 286.341,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45167,
    "c": 0.19276,
    "h": 317
  },
  "luminance": 0.07749
}

Semantic roles & 50–950 ramp

primary
#7E1F9A
secondary
#6DC154
accent
#E93E65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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