#791FA7#791FA7

#791FA7 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.4% C 0.203 H 310.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#791FA7
RGBrgb(121, 31, 167)
HSLhsl(280, 69%, 39%)
HSVhsv(280, 81%, 65%)
CMYKcmyk(27.5%, 81.4%, 0%, 34.5%)
CIE-LABlab(33.64, 58.33, -54.30)
CIE-LCHlch(33.64, 79.69, 317.04°)
OKLaboklab(45.44% 0.1316 -0.1541)
OKLCHoklch(45.44% 0.203 310.5)
XYZxyz(15.3488, 7.8353, 37.2555)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FA7 #4DA71F
analogous
#351FA7 #791FA7 #A71F91
triadic
#791FA7 #A7791F #1FA779
tetradic
#791FA7 #A7351F #4DA71F #1F91A7
square
#791FA7 #A7351F #4DA71F #1F91A7
split-complementary
#791FA7 #91A71F #1FA735
monochromatic
#2E0C40 #541573 #791FA7 #9D2BD8 #B55FE1

Accessibility & contrast

On white

8.18
#791FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#791FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FA7
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FA7#FFFFFF#000000##FFFFFF
##791FA71.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#734264
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #791fa7;
/* rgb */ color: rgb(121, 31, 167);
/* oklch */ color: oklch(45.4% 0.203 310.5);
Tailwind
colors: {
  custom: {
    50: '#a567c2',
    500: '#791fa7',
    950: '#000000',
  },
}
SCSS
$custom: #791fa7;
$custom-light: #a567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#791fa7",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 279.706,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45442,
    "c": 0.20267,
    "h": 310.5
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#791FA7
secondary
#80C65C
accent
#EC3C78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #791FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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