#7E1F84#7E1F84

#7E1F84 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.174 H 325.4°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7E1F84
RGBrgb(126, 31, 132)
HSLhsl(296, 62%, 32%)
HSVhsv(296, 77%, 52%)
CMYKcmyk(4.5%, 76.5%, 0%, 48.2%)
CIE-LABlab(31.99, 52.44, -35.48)
CIE-LCHlch(31.99, 63.32, 325.92°)
OKLaboklab(43.67% 0.1432 -0.0988)
OKLCHoklch(43.67% 0.174 325.4)
XYZxyz(13.2587, 7.0824, 22.4940)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F84 #25841F
analogous
#4C1F84 #7E1F84 #841F57
triadic
#7E1F84 #847E1F #1F847E
tetradic
#7E1F84 #844C1F #25841F #1F5784
square
#7E1F84 #844C1F #25841F #1F5784
split-complementary
#7E1F84 #57841F #1F844C
monochromatic
#1F0821 #4F1352 #7E1F84 #AD2BB6 #CC49D4

Accessibility & contrast

On white

8.69
#7E1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F84
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F84#FFFFFF#000000##FFFFFF
##7E1F841.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004487
Deuteranopia (green-blind)
#354F82
Tritanopia (blue-blind)
#813150
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1f84;
/* rgb */ color: rgb(126, 31, 132);
/* oklch */ color: oklch(43.7% 0.174 325.4);
Tailwind
colors: {
  custom: {
    50: '#a766a8',
    500: '#7e1f84',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f84;
$custom-light: #a766a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f84",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 296.436,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43666,
    "c": 0.17396,
    "h": 325.4
  },
  "luminance": 0.07082
}

Semantic roles & 50–950 ramp

primary
#7E1F84
secondary
#4FB748
accent
#E5434C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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