#791E9D#791E9D

#791E9D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.195 H 313.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#791E9D
RGBrgb(121, 30, 157)
HSLhsl(283, 68%, 37%)
HSVhsv(283, 81%, 62%)
CMYKcmyk(22.9%, 80.9%, 0%, 38.4%)
CIE-LABlab(32.76, 56.58, -49.68)
CIE-LCHlch(32.76, 75.29, 318.72°)
OKLaboklab(44.59% 0.1347 -0.1405)
OKLCHoklch(44.59% 0.195 313.8)
XYZxyz(14.4342, 7.4283, 32.5652)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E9D #429D1E
analogous
#3A1E9D #791E9D #9D1E82
triadic
#791E9D #9D791E #1E9D79
tetradic
#791E9D #9D3A1E #429D1E #1E829D
square
#791E9D #9D3A1E #429D1E #1E829D
split-complementary
#791E9D #829D1E #1E9D3A
monochromatic
#2A0A36 #51146A #791E9D #A128D0 #B857DF

Accessibility & contrast

On white

8.45
#791E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#791E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E9D
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E9D#FFFFFF#000000##FFFFFF
##791E9D1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#0E4F9A
Tritanopia (blue-blind)
#753D5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791e9d;
/* rgb */ color: rgb(121, 30, 157);
/* oklch */ color: oklch(44.6% 0.195 313.8);
Tailwind
colors: {
  custom: {
    50: '#a466bb',
    500: '#791e9d',
    950: '#000000',
  },
}
SCSS
$custom: #791e9d;
$custom-light: #a466bb;
$custom-dark: #000000;
JSON
{
  "hex": "#791e9d",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 282.992,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4459,
    "c": 0.19461,
    "h": 313.8
  },
  "luminance": 0.07428
}

Semantic roles & 50–950 ramp

primary
#791E9D
secondary
#74C254
accent
#EB3D6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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