#791687#791687

#791687 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.183 H 322.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#791687
RGBrgb(121, 22, 135)
HSLhsl(293, 72%, 31%)
HSVhsv(293, 84%, 53%)
CMYKcmyk(10.4%, 83.7%, 0%, 47.1%)
CIE-LABlab(30.37, 54.69, -40.00)
CIE-LCHlch(30.37, 67.75, 323.82°)
OKLaboklab(42.41% 0.1445 -0.112)
OKLCHoklch(42.41% 0.183 322.2)
XYZxyz(12.5448, 6.3888, 23.4894)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791687 #248716
analogous
#401687 #791687 #87165C
triadic
#791687 #877916 #168779
tetradic
#791687 #874016 #248716 #165C87
square
#791687 #874016 #248716 #165C87
split-complementary
#791687 #5C8716 #168740
monochromatic
#1B051E #4A0D52 #791687 #A81FBC #CA39DF

Accessibility & contrast

On white

9.22
#791687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#791687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791687
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791687#FFFFFF#000000##FFFFFF
##7916871.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#294B85
Tritanopia (blue-blind)
#7A2F50
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791687;
/* rgb */ color: rgb(121, 22, 135);
/* oklch */ color: oklch(42.4% 0.183 322.2);
Tailwind
colors: {
  custom: {
    50: '#a462aa',
    500: '#791687',
    950: '#000000',
  },
}
SCSS
$custom: #791687;
$custom-light: #a462aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791687",
  "rgb": {
    "r": 121,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 292.566,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42412,
    "c": 0.18289,
    "h": 322.2
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#791687
secondary
#4DBB3E
accent
#EF3950
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791687

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

Preview Lab → · Contrast checker → · Palette generator →

#791687 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva