#7E1785#7E1785

#7E1785 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.183 H 325.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7E1785
RGBrgb(126, 23, 133)
HSLhsl(296, 71%, 31%)
HSVhsv(296, 83%, 52%)
CMYKcmyk(5.3%, 82.7%, 0%, 47.8%)
CIE-LABlab(31.21, 55.05, -37.35)
CIE-LCHlch(31.21, 66.53, 325.84°)
OKLaboklab(43.13% 0.1499 -0.1042)
OKLCHoklch(43.13% 0.183 325.2)
XYZxyz(13.1439, 6.7428, 22.7949)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1785 #1E8517
analogous
#471785 #7E1785 #851755
triadic
#7E1785 #857E17 #17857E
tetradic
#7E1785 #854717 #1E8517 #175585
square
#7E1785 #854717 #1E8517 #175585
split-complementary
#7E1785 #558517 #178547
monochromatic
#1B051D #4D0E51 #7E1785 #AF20B9 #D23ADD

Accessibility & contrast

On white

8.94
#7E1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1785
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1785#FFFFFF#000000##FFFFFF
##7E17851.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#314E83
Tritanopia (blue-blind)
#812D4F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1785;
/* rgb */ color: rgb(126, 23, 133);
/* oklch */ color: oklch(43.1% 0.183 325.2);
Tailwind
colors: {
  custom: {
    50: '#a763a9',
    500: '#7e1785',
    950: '#000000',
  },
}
SCSS
$custom: #7e1785;
$custom-light: #a763a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1785",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 296.182,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43132,
    "c": 0.18253,
    "h": 325.2
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#7E1785
secondary
#47B93F
accent
#ED3B46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1785

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

Preview Lab → · Contrast checker → · Palette generator →

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