#791F87#791F87

#791F87 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.174 H 321.9°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#791F87
RGBrgb(121, 31, 135)
HSLhsl(292, 63%, 33%)
HSVhsv(292, 77%, 53%)
CMYKcmyk(10.4%, 77%, 0%, 47.1%)
CIE-LABlab(31.34, 51.91, -38.45)
CIE-LCHlch(31.34, 64.60, 323.47°)
OKLaboklab(43.09% 0.1371 -0.1076)
OKLCHoklch(43.09% 0.174 321.9)
XYZxyz(12.7478, 6.7949, 23.5571)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F87 #2D871F
analogous
#451F87 #791F87 #871F61
triadic
#791F87 #87791F #1F8779
tetradic
#791F87 #87451F #2D871F #1F6187
square
#791F87 #87451F #2D871F #1F6187
split-complementary
#791F87 #61871F #1F8745
monochromatic
#200823 #4C1455 #791F87 #A62AB9 #C34BD6

Accessibility & contrast

On white

8.90
#791F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#791F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F87
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F87#FFFFFF#000000##FFFFFF
##791F871.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2E4D85
Tritanopia (blue-blind)
#7A3352
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791f87;
/* rgb */ color: rgb(121, 31, 135);
/* oklch */ color: oklch(43.1% 0.174 321.9);
Tailwind
colors: {
  custom: {
    50: '#a365aa',
    500: '#791f87',
    950: '#000000',
  },
}
SCSS
$custom: #791f87;
$custom-light: #a365aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791f87",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 291.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43093,
    "c": 0.17424,
    "h": 321.9
  },
  "luminance": 0.06794
}

Semantic roles & 50–950 ramp

primary
#791F87
secondary
#58B84A
accent
#E64258
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791F87

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

Preview Lab → · Contrast checker → · Palette generator →

#791F87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva