#7E1C96#7E1C96

#7E1C96 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.192 H 318.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7E1C96
RGBrgb(126, 28, 150)
HSLhsl(288, 69%, 35%)
HSVhsv(288, 81%, 59%)
CMYKcmyk(16%, 81.3%, 0%, 41.2%)
CIE-LABlab(32.85, 56.75, -45.23)
CIE-LCHlch(32.85, 72.56, 321.45°)
OKLaboklab(44.65% 0.1439 -0.1272)
OKLCHoklch(44.65% 0.192 318.5)
XYZxyz(14.5237, 7.4688, 29.5249)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C96 #34961C
analogous
#411C96 #7E1C96 #961C71
triadic
#7E1C96 #967E1C #1C967E
tetradic
#7E1C96 #96411C #34961C #1C7196
square
#7E1C96 #96411C #34961C #1C7196
split-complementary
#7E1C96 #71961C #1C9641
monochromatic
#27092F #531262 #7E1C96 #A926CA #C24EDE

Accessibility & contrast

On white

8.42
#7E1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C96
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C96#FFFFFF#000000##FFFFFF
##7E1C961.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#235093
Tritanopia (blue-blind)
#7D385A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1c96;
/* rgb */ color: rgb(126, 28, 150);
/* oklch */ color: oklch(44.7% 0.192 318.5);
Tailwind
colors: {
  custom: {
    50: '#a766b5',
    500: '#7e1c96',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c96;
$custom-light: #a766b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c96",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 288.197,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44653,
    "c": 0.19211,
    "h": 318.5
  },
  "luminance": 0.07468
}

Semantic roles & 50–950 ramp

primary
#7E1C96
secondary
#64C14D
accent
#EB3C5F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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