#7E1E8C#7E1E8C

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

Color values

HEX#7E1E8C
RGBrgb(126, 30, 140)
HSLhsl(292, 65%, 33%)
HSVhsv(292, 79%, 55%)
CMYKcmyk(10%, 78.6%, 0%, 45.1%)
CIE-LABlab(32.39, 54.24, -39.82)
CIE-LCHlch(32.39, 67.28, 323.71°)
OKLaboklab(44.11% 0.1436 -0.1114)
OKLCHoklch(44.11% 0.182 322.2)
XYZxyz(13.8016, 7.2584, 25.4799)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E8C #2C8C1E
analogous
#471E8C #7E1E8C #8C1E63
triadic
#7E1E8C #8C7E1E #1E8C7E
tetradic
#7E1E8C #8C471E #2C8C1E #1E638C
square
#7E1E8C #8C471E #2C8C1E #1E638C
split-complementary
#7E1E8C #638C1E #1E8C47
monochromatic
#230827 #51135A #7E1E8C #AB29BE #C74CD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1E8C#FFFFFF#000000##FFFFFF
##7E1E8C1.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)
#00458F
Deuteranopia (green-blind)
#2F508A
Tritanopia (blue-blind)
#803454
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1e8c;
/* rgb */ color: rgb(126, 30, 140);
/* oklch */ color: oklch(44.1% 0.182 322.2);
Tailwind
colors: {
  custom: {
    50: '#a766ae',
    500: '#7e1e8c',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e8c;
$custom-light: #a766ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e8c",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 292.364,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44109,
    "c": 0.18172,
    "h": 322.2
  },
  "luminance": 0.07258
}

Semantic roles & 50–950 ramp

primary
#7E1E8C
secondary
#59BB4B
accent
#E84055
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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