#791A87#791A87

#791A87 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.179 H 322.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#791A87
RGBrgb(121, 26, 135)
HSLhsl(292, 68%, 32%)
HSVhsv(292, 81%, 53%)
CMYKcmyk(10.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(30.77, 53.54, -39.36)
CIE-LCHlch(30.77, 66.45, 323.68°)
OKLaboklab(42.69% 0.1415 -0.1102)
OKLCHoklch(42.69% 0.179 322.1)
XYZxyz(12.6273, 6.5537, 23.5169)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A87 #28871A
analogous
#431A87 #791A87 #871A5F
triadic
#791A87 #87791A #1A8779
tetradic
#791A87 #87431A #28871A #1A5F87
square
#791A87 #87431A #28871A #1A5F87
split-complementary
#791A87 #5F871A #1A8743
monochromatic
#1D0620 #4B1054 #791A87 #A724BA #C741DA

Accessibility & contrast

On white

9.09
#791A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#791A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A87
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A87#FFFFFF#000000##FFFFFF
##791A871.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2B4C85
Tritanopia (blue-blind)
#7A3151
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791a87;
/* rgb */ color: rgb(121, 26, 135);
/* oklch */ color: oklch(42.7% 0.179 322.1);
Tailwind
colors: {
  custom: {
    50: '#a363aa',
    500: '#791a87',
    950: '#000000',
  },
}
SCSS
$custom: #791a87;
$custom-light: #a363aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791a87",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 292.294,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42691,
    "c": 0.17932,
    "h": 322.1
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#791A87
secondary
#52BA42
accent
#EB3D53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791A87

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

Preview Lab → · Contrast checker → · Palette generator →

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