#7F1785#7F1785

#7F1785 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.183 H 325.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7F1785
RGBrgb(127, 23, 133)
HSLhsl(297, 71%, 31%)
HSVhsv(297, 83%, 52%)
CMYKcmyk(4.5%, 82.7%, 0%, 47.8%)
CIE-LABlab(31.39, 55.26, -37.06)
CIE-LCHlch(31.39, 66.53, 326.15°)
OKLaboklab(43.29% 0.151 -0.1033)
OKLCHoklch(43.29% 0.183 325.6)
XYZxyz(13.2921, 6.8192, 22.8019)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1785 #1D8517
analogous
#481785 #7F1785 #851754
triadic
#7F1785 #857F17 #17857F
tetradic
#7F1785 #854817 #1D8517 #175485
square
#7F1785 #854817 #1D8517 #175485
split-complementary
#7F1785 #548517 #178548
monochromatic
#1B051D #4D0E51 #7F1785 #B120B9 #D43ADD

Accessibility & contrast

On white

8.88
#7F1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1785
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1785#FFFFFF#000000##FFFFFF
##7F17851.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#324E83
Tritanopia (blue-blind)
#822D4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1785;
/* rgb */ color: rgb(127, 23, 133);
/* oklch */ color: oklch(43.3% 0.183 325.6);
Tailwind
colors: {
  custom: {
    50: '#a863a9',
    500: '#7f1785',
    950: '#000000',
  },
}
SCSS
$custom: #7f1785;
$custom-light: #a863a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1785",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 296.727,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43292,
    "c": 0.18297,
    "h": 325.6
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

primary
#7F1785
secondary
#45B93F
accent
#ED3B44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1785

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

Preview Lab → · Contrast checker → · Palette generator →

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