#7E1773#7E1773

#7E1773 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.169 H 333.1°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7E1773
RGBrgb(126, 23, 115)
HSLhsl(306, 69%, 29%)
HSVhsv(306, 82%, 49%)
CMYKcmyk(0%, 81.7%, 8.7%, 50.6%)
CIE-LABlab(30.13, 52.05, -27.74)
CIE-LCHlch(30.13, 58.98, 331.95°)
OKLaboklab(42.01% 0.1504 -0.0762)
OKLCHoklch(42.01% 0.169 333.1)
XYZxyz(12.0052, 6.2873, 16.7976)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1773 #177E22
analogous
#56177E #7E1773 #7E1740
triadic
#7E1773 #737E17 #17737E
tetradic
#7E1773 #7E5617 #177E22 #17407E
square
#7E1773 #7E5617 #177E22 #17407E
split-complementary
#7E1773 #407E17 #177E56
monochromatic
#1A0518 #4A0E44 #7E1773 #B220A2 #DA35C9

Accessibility & contrast

On white

9.30
#7E1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1773
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1773#FFFFFF#000000##FFFFFF
##7E17731.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113E75
Deuteranopia (green-blind)
#3C4C71
Tritanopia (blue-blind)
#842345
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1773;
/* rgb */ color: rgb(126, 23, 115);
/* oklch */ color: oklch(42.0% 0.169 333.1);
Tailwind
colors: {
  custom: {
    50: '#a7629b',
    500: '#7e1773',
    950: '#000000',
  },
}
SCSS
$custom: #7e1773;
$custom-light: #a7629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1773",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 306.408,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42009,
    "c": 0.16864,
    "h": 333.1
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#7E1773
secondary
#3EB34B
accent
#EC4F3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1773

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

Preview Lab → · Contrast checker → · Palette generator →

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