#791F8B#791F8B

#791F8B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.178 H 320.3°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#791F8B
RGBrgb(121, 31, 139)
HSLhsl(290, 64%, 33%)
HSVhsv(290, 78%, 55%)
CMYKcmyk(12.9%, 77.7%, 0%, 45.5%)
CIE-LABlab(31.60, 52.67, -40.51)
CIE-LCHlch(31.60, 66.45, 322.44°)
OKLaboklab(43.36% 0.1367 -0.1136)
OKLCHoklch(43.36% 0.178 320.3)
XYZxyz(13.0348, 6.9097, 25.0682)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F8B #318B1F
analogous
#431F8B #791F8B #8B1F67
triadic
#791F8B #8B791F #1F8B79
tetradic
#791F8B #8B431F #318B1F #1F678B
square
#791F8B #8B431F #318B1F #1F678B
split-complementary
#791F8B #678B1F #1F8B43
monochromatic
#220927 #4D1459 #791F8B #A52ABD #C04DD7

Accessibility & contrast

On white

8.82
#791F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#791F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F8B
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F8B#FFFFFF#000000##FFFFFF
##791F8B1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2A4D89
Tritanopia (blue-blind)
#793554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791f8b;
/* rgb */ color: rgb(121, 31, 139);
/* oklch */ color: oklch(43.4% 0.178 320.3);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#791f8b',
    950: '#000000',
  },
}
SCSS
$custom: #791f8b;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#791f8b",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 290,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43365,
    "c": 0.17772,
    "h": 320.3
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#791F8B
secondary
#5EBA4C
accent
#E7415D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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