#7F1790#7F1790

#7F1790 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.192 H 321.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7F1790
RGBrgb(127, 23, 144)
HSLhsl(292, 72%, 33%)
HSVhsv(292, 84%, 56%)
CMYKcmyk(11.8%, 84%, 0%, 43.5%)
CIE-LABlab(32.12, 57.22, -42.71)
CIE-LCHlch(32.12, 71.40, 323.26°)
OKLaboklab(44.04% 0.1498 -0.1198)
OKLCHoklch(44.04% 0.192 321.3)
XYZxyz(14.0923, 7.1392, 27.0159)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1790 #289017
analogous
#421790 #7F1790 #901765
triadic
#7F1790 #907F17 #17907F
tetradic
#7F1790 #904217 #289017 #176590
square
#7F1790 #904217 #289017 #176590
split-complementary
#7F1790 #659017 #179042
monochromatic
#220626 #500F5B #7F1790 #AE1FC5 #CA41E1

Accessibility & contrast

On white

8.65
#7F1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1790
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1790#FFFFFF#000000##FFFFFF
##7F17901.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#294F8D
Tritanopia (blue-blind)
#803355
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1790;
/* rgb */ color: rgb(127, 23, 144);
/* oklch */ color: oklch(44.0% 0.192 321.3);
Tailwind
colors: {
  custom: {
    50: '#a864b1',
    500: '#7f1790',
    950: '#000000',
  },
}
SCSS
$custom: #7f1790;
$custom-light: #a864b1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1790",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 291.57,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4404,
    "c": 0.19177,
    "h": 321.3
  },
  "luminance": 0.07138
}

Semantic roles & 50–950 ramp

primary
#7F1790
secondary
#54C142
accent
#EF3952
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7F1790

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

Preview Lab → · Contrast checker → · Palette generator →

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