#7E1F89#7E1F89

#7E1F89 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.178 H 323.3°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7E1F89
RGBrgb(126, 31, 137)
HSLhsl(294, 63%, 33%)
HSVhsv(294, 77%, 54%)
CMYKcmyk(8%, 77.4%, 0%, 46.3%)
CIE-LABlab(32.31, 53.35, -38.09)
CIE-LCHlch(32.31, 65.55, 324.48°)
OKLaboklab(43.99% 0.1429 -0.1064)
OKLCHoklch(43.99% 0.178 323.3)
XYZxyz(13.6091, 7.2226, 24.3393)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F89 #2A891F
analogous
#491F89 #7E1F89 #891F5F
triadic
#7E1F89 #897E1F #1F897E
tetradic
#7E1F89 #89491F #2A891F #1F5F89
square
#7E1F89 #89491F #2A891F #1F5F89
split-complementary
#7E1F89 #5F891F #1F8949
monochromatic
#220825 #501457 #7E1F89 #AC2ABB #C84CD6

Accessibility & contrast

On white

8.59
#7E1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F89
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F89#FFFFFF#000000##FFFFFF
##7E1F891.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#325087
Tritanopia (blue-blind)
#803353
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1f89;
/* rgb */ color: rgb(126, 31, 137);
/* oklch */ color: oklch(44.0% 0.178 323.3);
Tailwind
colors: {
  custom: {
    50: '#a766ac',
    500: '#7e1f89',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f89;
$custom-light: #a766ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f89",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 293.774,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43991,
    "c": 0.17816,
    "h": 323.3
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#7E1F89
secondary
#56B94B
accent
#E64253
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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