#7E1D97#7E1D97

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

Color values

HEX#7E1D97
RGBrgb(126, 29, 151)
HSLhsl(288, 68%, 35%)
HSVhsv(288, 81%, 59%)
CMYKcmyk(16.6%, 80.8%, 0%, 40.8%)
CIE-LABlab(33.03, 56.63, -45.55)
CIE-LCHlch(33.03, 72.68, 321.19°)
OKLaboklab(44.8% 0.143 -0.1282)
OKLCHoklch(44.8% 0.192 318.1)
XYZxyz(14.6287, 7.5494, 29.9588)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D97 #36971D
analogous
#411D97 #7E1D97 #971D73
triadic
#7E1D97 #977E1D #1D977E
tetradic
#7E1D97 #97411D #36971D #1D7397
square
#7E1D97 #97411D #36971D #1D7397
split-complementary
#7E1D97 #73971D #1D9741
monochromatic
#280930 #531364 #7E1D97 #A927CA #C151DE

Accessibility & contrast

On white

8.37
#7E1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D97
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D97#FFFFFF#000000##FFFFFF
##7E1D971.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#235194
Tritanopia (blue-blind)
#7D395B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1d97;
/* rgb */ color: rgb(126, 29, 151);
/* oklch */ color: oklch(44.8% 0.192 318.1);
Tailwind
colors: {
  custom: {
    50: '#a766b6',
    500: '#7e1d97',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d97;
$custom-light: #a766b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d97",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 287.705,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44798,
    "c": 0.19204,
    "h": 318.1
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#7E1D97
secondary
#67C04F
accent
#EB3D61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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