#7E1F99#7E1F99

#7E1F99 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.192 H 317.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7E1F99
RGBrgb(126, 31, 153)
HSLhsl(287, 66%, 36%)
HSVhsv(287, 80%, 60%)
CMYKcmyk(17.6%, 79.7%, 0%, 40%)
CIE-LABlab(33.38, 56.39, -46.20)
CIE-LCHlch(33.38, 72.90, 320.67°)
OKLaboklab(45.1% 0.141 -0.1301)
OKLCHoklch(45.1% 0.192 317.3)
XYZxyz(14.8431, 7.7162, 30.8383)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F99 #3A991F
analogous
#411F99 #7E1F99 #991F77
triadic
#7E1F99 #997E1F #1F997E
tetradic
#7E1F99 #99411F #3A991F #1F7799
square
#7E1F99 #99411F #3A991F #1F7799
split-complementary
#7E1F99 #77991F #1F9941
monochromatic
#2A0A33 #541566 #7E1F99 #A829CC #BF56DD

Accessibility & contrast

On white

8.26
#7E1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F99
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F99#FFFFFF#000000##FFFFFF
##7E1F991.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#225196
Tritanopia (blue-blind)
#7D3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1f99;
/* rgb */ color: rgb(126, 31, 153);
/* oklch */ color: oklch(45.1% 0.192 317.3);
Tailwind
colors: {
  custom: {
    50: '#a767b8',
    500: '#7e1f99',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f99;
$custom-light: #a767b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f99",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 286.721,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45095,
    "c": 0.19189,
    "h": 317.3
  },
  "luminance": 0.07716
}

Semantic roles & 50–950 ramp

primary
#7E1F99
secondary
#6CC054
accent
#E93F64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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