#791EA7#791EA7

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

Color values

HEX#791EA7
RGBrgb(121, 30, 167)
HSLhsl(280, 70%, 39%)
HSVhsv(280, 82%, 65%)
CMYKcmyk(27.5%, 82%, 0%, 34.5%)
CIE-LABlab(33.53, 58.64, -54.48)
CIE-LCHlch(33.53, 80.04, 317.11°)
OKLaboklab(45.37% 0.1324 -0.1546)
OKLCHoklch(45.37% 0.204 310.6)
XYZxyz(15.3231, 7.7839, 37.2470)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791EA7 #4CA71E
analogous
#341EA7 #791EA7 #A71E90
triadic
#791EA7 #A7791E #1EA779
tetradic
#791EA7 #A7341E #4CA71E #1E90A7
square
#791EA7 #A7341E #4CA71E #1E90A7
split-complementary
#791EA7 #90A71E #1EA734
monochromatic
#2E0B3F #531573 #791EA7 #9E2AD9 #B55DE2

Accessibility & contrast

On white

8.21
#791EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#791EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791EA7
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791EA7#FFFFFF#000000##FFFFFF
##791EA71.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.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: #791ea7;
/* rgb */ color: rgb(121, 30, 167);
/* oklch */ color: oklch(45.4% 0.204 310.6);
Tailwind
colors: {
  custom: {
    50: '#a567c2',
    500: '#791ea7',
    950: '#000000',
  },
}
SCSS
$custom: #791ea7;
$custom-light: #a567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#791ea7",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 279.854,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45366,
    "c": 0.20354,
    "h": 310.6
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#791EA7
secondary
#7FC65B
accent
#EC3B77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #791EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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