#791A8E#791A8E

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

Color values

HEX#791A8E
RGBrgb(121, 26, 142)
HSLhsl(289, 69%, 33%)
HSVhsv(289, 82%, 56%)
CMYKcmyk(14.8%, 81.7%, 0%, 44.3%)
CIE-LABlab(31.25, 54.86, -42.93)
CIE-LCHlch(31.25, 69.66, 321.95°)
OKLaboklab(43.18% 0.1405 -0.1207)
OKLCHoklch(43.18% 0.185 319.3)
XYZxyz(13.1364, 6.7574, 26.1983)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A8E #2F8E1A
analogous
#3F1A8E #791A8E #8E1A69
triadic
#791A8E #8E791A #1A8E79
tetradic
#791A8E #8E3F1A #2F8E1A #1A698E
square
#791A8E #8E3F1A #2F8E1A #1A698E
split-complementary
#791A8E #698E1A #1A8E3F
monochromatic
#210727 #4D115A #791A8E #A523C2 #C245DD

Accessibility & contrast

On white

8.93
#791A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#791A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A8E
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A8E#FFFFFF#000000##FFFFFF
##791A8E1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#244D8C
Tritanopia (blue-blind)
#793455
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791a8e;
/* rgb */ color: rgb(121, 26, 142);
/* oklch */ color: oklch(43.2% 0.185 319.3);
Tailwind
colors: {
  custom: {
    50: '#a464b0',
    500: '#791a8e',
    950: '#000000',
  },
}
SCSS
$custom: #791a8e;
$custom-light: #a464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#791a8e",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 289.138,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43182,
    "c": 0.18522,
    "h": 319.3
  },
  "luminance": 0.06757
}

Semantic roles & 50–950 ramp

primary
#791A8E
secondary
#5BBE45
accent
#EC3C5C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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