#791FA0#791FA0

#791FA0 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.196 H 312.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#791FA0
RGBrgb(121, 31, 160)
HSLhsl(282, 68%, 37%)
HSVhsv(282, 81%, 63%)
CMYKcmyk(24.4%, 80.6%, 0%, 37.3%)
CIE-LABlab(33.10, 56.87, -50.95)
CIE-LCHlch(33.10, 76.35, 318.14°)
OKLaboklab(44.9% 0.1332 -0.1442)
OKLCHoklch(44.9% 0.196 312.7)
XYZxyz(14.7192, 7.5834, 33.9393)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FA0 #46A01F
analogous
#381FA0 #791FA0 #A01F87
triadic
#791FA0 #A0791F #1FA079
tetradic
#791FA0 #A0381F #46A01F #1F87A0
square
#791FA0 #A0381F #46A01F #1F87A0
split-complementary
#791FA0 #87A01F #1FA038
monochromatic
#2B0B39 #52156D #791FA0 #A029D3 #B75ADF

Accessibility & contrast

On white

8.34
#791FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#791FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FA0
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FA0#FFFFFF#000000##FFFFFF
##791FA01.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#06509D
Tritanopia (blue-blind)
#743F60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791fa0;
/* rgb */ color: rgb(121, 31, 160);
/* oklch */ color: oklch(44.9% 0.196 312.7);
Tailwind
colors: {
  custom: {
    50: '#a467bd',
    500: '#791fa0',
    950: '#000000',
  },
}
SCSS
$custom: #791fa0;
$custom-light: #a467bd;
$custom-dark: #000000;
JSON
{
  "hex": "#791fa0",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 281.86,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44897,
    "c": 0.19636,
    "h": 312.7
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#791FA0
secondary
#78C358
accent
#EA3D72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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