#791986#791986

#791986 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.179 H 322.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#791986
RGBrgb(121, 25, 134)
HSLhsl(293, 69%, 31%)
HSVhsv(293, 81%, 53%)
CMYKcmyk(9.7%, 81.3%, 0%, 47.5%)
CIE-LABlab(30.60, 53.66, -39.01)
CIE-LCHlch(30.60, 66.34, 323.98°)
OKLaboklab(42.55% 0.1424 -0.1092)
OKLCHoklch(42.55% 0.179 322.5)
XYZxyz(12.5354, 6.4822, 23.1406)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791986 #268619
analogous
#421986 #791986 #86195C
triadic
#791986 #867919 #198679
tetradic
#791986 #864219 #268619 #195C86
square
#791986 #864219 #268619 #195C86
split-complementary
#791986 #5C8619 #198642
monochromatic
#1C061F #4A0F52 #791986 #A823BA #C83EDB

Accessibility & contrast

On white

9.15
#791986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#791986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791986
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791986#FFFFFF#000000##FFFFFF
##7919861.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#2B4C84
Tritanopia (blue-blind)
#7B3050
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791986;
/* rgb */ color: rgb(121, 25, 134);
/* oklch */ color: oklch(42.5% 0.179 322.5);
Tailwind
colors: {
  custom: {
    50: '#a363aa',
    500: '#791986',
    950: '#000000',
  },
}
SCSS
$custom: #791986;
$custom-light: #a363aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791986",
  "rgb": {
    "r": 121,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 292.844,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42549,
    "c": 0.17942,
    "h": 322.5
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#791986
secondary
#50BA41
accent
#EB3C51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791986

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

Preview Lab → · Contrast checker → · Palette generator →

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