#7E1C97#7E1C97

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

Color values

HEX#7E1C97
RGBrgb(126, 28, 151)
HSLhsl(288, 69%, 35%)
HSVhsv(288, 81%, 59%)
CMYKcmyk(16.6%, 81.5%, 0%, 40.8%)
CIE-LABlab(32.92, 56.94, -45.72)
CIE-LCHlch(32.92, 73.02, 321.23°)
OKLaboklab(44.72% 0.1438 -0.1287)
OKLCHoklch(44.72% 0.193 318.2)
XYZxyz(14.6046, 7.5012, 29.9507)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C97 #35971C
analogous
#411C97 #7E1C97 #971C72
triadic
#7E1C97 #977E1C #1C977E
tetradic
#7E1C97 #97411C #35971C #1C7297
square
#7E1C97 #97411C #35971C #1C7297
split-complementary
#7E1C97 #72971C #1C9741
monochromatic
#280930 #531263 #7E1C97 #A926CB #C14FDE

Accessibility & contrast

On white

8.40
#7E1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C97
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C97#FFFFFF#000000##FFFFFF
##7E1C971.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#225094
Tritanopia (blue-blind)
#7D385A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1c97;
/* rgb */ color: rgb(126, 28, 151);
/* oklch */ color: oklch(44.7% 0.193 318.2);
Tailwind
colors: {
  custom: {
    50: '#a766b6',
    500: '#7e1c97',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c97;
$custom-light: #a766b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c97",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 287.805,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44724,
    "c": 0.19296,
    "h": 318.2
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

primary
#7E1C97
secondary
#65C14E
accent
#EC3C60
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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