#791C8E#791C8E

#791C8E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.183 H 319.3°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#791C8E
RGBrgb(121, 28, 142)
HSLhsl(289, 67%, 33%)
HSVhsv(289, 80%, 56%)
CMYKcmyk(14.8%, 80.3%, 0%, 44.3%)
CIE-LABlab(31.46, 54.24, -42.59)
CIE-LCHlch(31.46, 68.96, 321.86°)
OKLaboklab(43.33% 0.1389 -0.1197)
OKLCHoklch(43.33% 0.183 319.3)
XYZxyz(13.1823, 6.8491, 26.2136)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C8E #318E1C
analogous
#401C8E #791C8E #8E1C6A
triadic
#791C8E #8E791C #1C8E79
tetradic
#791C8E #8E401C #318E1C #1C6A8E
square
#791C8E #8E401C #318E1C #1C6A8E
split-complementary
#791C8E #6A8E1C #1C8E40
monochromatic
#220828 #4D125B #791C8E #A526C1 #C049DB

Accessibility & contrast

On white

8.86
#791C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#791C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C8E
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C8E#FFFFFF#000000##FFFFFF
##791C8E1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#254D8C
Tritanopia (blue-blind)
#793555
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791c8e;
/* rgb */ color: rgb(121, 28, 142);
/* oklch */ color: oklch(43.3% 0.183 319.3);
Tailwind
colors: {
  custom: {
    50: '#a464b0',
    500: '#791c8e',
    950: '#000000',
  },
}
SCSS
$custom: #791c8e;
$custom-light: #a464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#791c8e",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 288.947,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43332,
    "c": 0.18336,
    "h": 319.3
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#791C8E
secondary
#5EBD49
accent
#EA3E5E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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