#7E1F98#7E1F98

#7E1F98 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.191 H 317.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7E1F98
RGBrgb(126, 31, 152)
HSLhsl(287, 66%, 36%)
HSVhsv(287, 80%, 60%)
CMYKcmyk(17.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(33.31, 56.20, -45.70)
CIE-LCHlch(33.31, 72.43, 320.88°)
OKLaboklab(45.02% 0.1412 -0.1287)
OKLCHoklch(45.02% 0.191 317.7)
XYZxyz(14.7608, 7.6833, 30.4052)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F98 #39981F
analogous
#411F98 #7E1F98 #981F75
triadic
#7E1F98 #987E1F #1F987E
tetradic
#7E1F98 #98411F #39981F #1F7598
square
#7E1F98 #98411F #39981F #1F7598
split-complementary
#7E1F98 #75981F #1F9841
monochromatic
#2A0A32 #541565 #7E1F98 #A829CB #BF55DC

Accessibility & contrast

On white

8.28
#7E1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F98
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F98#FFFFFF#000000##FFFFFF
##7E1F981.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#235195
Tritanopia (blue-blind)
#7D3A5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1f98;
/* rgb */ color: rgb(126, 31, 152);
/* oklch */ color: oklch(45.0% 0.191 317.7);
Tailwind
colors: {
  custom: {
    50: '#a767b7',
    500: '#7e1f98',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f98;
$custom-light: #a767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f98",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 287.107,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45023,
    "c": 0.19102,
    "h": 317.7
  },
  "luminance": 0.07683
}

Semantic roles & 50–950 ramp

primary
#7E1F98
secondary
#6AC053
accent
#E93F63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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