#791A9D#791A9D

#791A9D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.3% C 0.198 H 314.0°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#791A9D
RGBrgb(121, 26, 157)
HSLhsl(284, 72%, 36%)
HSVhsv(284, 83%, 62%)
CMYKcmyk(22.9%, 83.4%, 0%, 38.4%)
CIE-LABlab(32.34, 57.80, -50.36)
CIE-LCHlch(32.34, 76.65, 318.94°)
OKLaboklab(44.3% 0.1377 -0.1425)
OKLCHoklch(44.3% 0.198 314)
XYZxyz(14.3393, 7.2386, 32.5336)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A9D #3E9D1A
analogous
#371A9D #791A9D #9D1A7F
triadic
#791A9D #9D791A #1A9D79
tetradic
#791A9D #9D371A #3E9D1A #1A7F9D
square
#791A9D #9D371A #3E9D1A #1A7F9D
split-complementary
#791A9D #7F9D1A #1A9D37
monochromatic
#280934 #511168 #791A9D #A123D2 #BA4FE2

Accessibility & contrast

On white

8.58
#791A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#791A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A9D
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A9D#FFFFFF#000000##FFFFFF
##791A9D1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#074E9A
Tritanopia (blue-blind)
#753B5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791a9d;
/* rgb */ color: rgb(121, 26, 157);
/* oklch */ color: oklch(44.3% 0.198 314.0);
Tailwind
colors: {
  custom: {
    50: '#a465bb',
    500: '#791a9d',
    950: '#000000',
  },
}
SCSS
$custom: #791a9d;
$custom-light: #a465bb;
$custom-dark: #000000;
JSON
{
  "hex": "#791a9d",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 283.511,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44297,
    "c": 0.19811,
    "h": 314
  },
  "luminance": 0.07238
}

Semantic roles & 50–950 ramp

primary
#791A9D
secondary
#6FC44E
accent
#EE396B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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