#7E1F8A#7E1F8A

#7E1F8A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.179 H 322.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7E1F8A
RGBrgb(126, 31, 138)
HSLhsl(293, 63%, 33%)
HSVhsv(293, 78%, 54%)
CMYKcmyk(8.7%, 77.5%, 0%, 45.9%)
CIE-LABlab(32.37, 53.54, -38.61)
CIE-LCHlch(32.37, 66.00, 324.20°)
OKLaboklab(44.06% 0.1428 -0.1079)
OKLCHoklch(44.06% 0.179 322.9)
XYZxyz(13.6812, 7.2514, 24.7189)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F8A #2B8A1F
analogous
#481F8A #7E1F8A #8A1F60
triadic
#7E1F8A #8A7E1F #1F8A7E
tetradic
#7E1F8A #8A481F #2B8A1F #1F608A
square
#7E1F8A #8A481F #2B8A1F #1F608A
split-complementary
#7E1F8A #608A1F #1F8A48
monochromatic
#230926 #501458 #7E1F8A #AC2ABC #C74CD7

Accessibility & contrast

On white

8.57
#7E1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F8A
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F8A#FFFFFF#000000##FFFFFF
##7E1F8A1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#315088
Tritanopia (blue-blind)
#803454
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1f8a;
/* rgb */ color: rgb(126, 31, 138);
/* oklch */ color: oklch(44.1% 0.179 322.9);
Tailwind
colors: {
  custom: {
    50: '#a766ad',
    500: '#7e1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f8a;
$custom-light: #a766ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f8a",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 293.271,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44057,
    "c": 0.179,
    "h": 322.9
  },
  "luminance": 0.07251
}

Semantic roles & 50–950 ramp

primary
#7E1F8A
secondary
#58BA4B
accent
#E64154
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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