#791A7E#791A7E

#791A7E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.172 H 325.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#791A7E
RGBrgb(121, 26, 126)
HSLhsl(297, 66%, 30%)
HSVhsv(297, 79%, 49%)
CMYKcmyk(4%, 79.4%, 0%, 50.6%)
CIE-LABlab(30.18, 51.91, -34.66)
CIE-LCHlch(30.18, 62.42, 326.26°)
OKLaboklab(42.09% 0.1422 -0.0965)
OKLCHoklch(42.09% 0.172 325.8)
XYZxyz(12.0202, 6.3109, 20.3196)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A7E #1F7E1A
analogous
#471A7E #791A7E #7E1A51
triadic
#791A7E #7E791A #1A7E79
tetradic
#791A7E #7E471A #1F7E1A #1A517E
square
#791A7E #7E471A #1F7E1A #1A517E
split-complementary
#791A7E #517E1A #1A7E47
monochromatic
#180519 #48104B #791A7E #AA24B1 #CF3CD7

Accessibility & contrast

On white

9.28
#791A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#791A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A7E
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A7E#FFFFFF#000000##FFFFFF
##791A7E1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7C2C4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791a7e;
/* rgb */ color: rgb(121, 26, 126);
/* oklch */ color: oklch(42.1% 0.172 325.8);
Tailwind
colors: {
  custom: {
    50: '#a363a4',
    500: '#791a7e',
    950: '#000000',
  },
}
SCSS
$custom: #791a7e;
$custom-light: #a363a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791a7e",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 297,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42089,
    "c": 0.17186,
    "h": 325.8
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#791A7E
secondary
#47B242
accent
#E93F48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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