#7E1770#7E1770

#7E1770 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.166 H 334.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7E1770
RGBrgb(126, 23, 112)
HSLhsl(308, 69%, 29%)
HSVhsv(308, 82%, 49%)
CMYKcmyk(0%, 81.7%, 11.1%, 50.6%)
CIE-LABlab(29.96, 51.58, -26.09)
CIE-LCHlch(29.96, 57.80, 333.17°)
OKLaboklab(41.84% 0.1503 -0.0715)
OKLCHoklch(41.84% 0.166 334.6)
XYZxyz(11.8354, 6.2193, 15.9032)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1770 #177E25
analogous
#59177E #7E1770 #7E173D
triadic
#7E1770 #707E17 #17707E
tetradic
#7E1770 #7E5917 #177E25 #173D7E
square
#7E1770 #7E5917 #177E25 #173D7E
split-complementary
#7E1770 #3D7E17 #177E59
monochromatic
#1A0517 #4A0E42 #7E1770 #B2209E #DA35C4

Accessibility & contrast

On white

9.36
#7E1770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1770
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1770#FFFFFF#000000##FFFFFF
##7E17701.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D72
Deuteranopia (green-blind)
#3D4C6E
Tritanopia (blue-blind)
#842143
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1770;
/* rgb */ color: rgb(126, 23, 112);
/* oklch */ color: oklch(41.8% 0.166 334.6);
Tailwind
colors: {
  custom: {
    50: '#a76299',
    500: '#7e1770',
    950: '#000000',
  },
}
SCSS
$custom: #7e1770;
$custom-light: #a76299;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1770",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 308.155,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41835,
    "c": 0.16643,
    "h": 334.6
  },
  "luminance": 0.06218
}

Semantic roles & 50–950 ramp

primary
#7E1770
secondary
#3EB34E
accent
#EC543C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1770

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

Preview Lab → · Contrast checker → · Palette generator →

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