#7E1F88#7E1F88

#7E1F88 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.177 H 323.7°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7E1F88
RGBrgb(126, 31, 136)
HSLhsl(294, 63%, 33%)
HSVhsv(294, 77%, 53%)
CMYKcmyk(7.4%, 77.2%, 0%, 46.7%)
CIE-LABlab(32.24, 53.17, -37.57)
CIE-LCHlch(32.24, 65.10, 324.75°)
OKLaboklab(43.93% 0.143 -0.1049)
OKLCHoklch(43.93% 0.177 323.7)
XYZxyz(13.5377, 7.1940, 23.9633)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F88 #29881F
analogous
#4A1F88 #7E1F88 #881F5D
triadic
#7E1F88 #887E1F #1F887E
tetradic
#7E1F88 #884A1F #29881F #1F5D88
square
#7E1F88 #884A1F #29881F #1F5D88
split-complementary
#7E1F88 #5D881F #1F884A
monochromatic
#220824 #501456 #7E1F88 #AC2ABA #C94BD6

Accessibility & contrast

On white

8.61
#7E1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F88
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F88#FFFFFF#000000##FFFFFF
##7E1F881.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#325086
Tritanopia (blue-blind)
#803352
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1f88;
/* rgb */ color: rgb(126, 31, 136);
/* oklch */ color: oklch(43.9% 0.177 323.7);
Tailwind
colors: {
  custom: {
    50: '#a766ab',
    500: '#7e1f88',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f88;
$custom-light: #a766ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f88",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 294.286,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43925,
    "c": 0.17732,
    "h": 323.7
  },
  "luminance": 0.07193
}

Semantic roles & 50–950 ramp

primary
#7E1F88
secondary
#55B94A
accent
#E64251
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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