#791DA7#791DA7

#791DA7 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.3% C 0.204 H 310.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#791DA7
RGBrgb(121, 29, 167)
HSLhsl(280, 70%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(27.5%, 82.6%, 0%, 34.5%)
CIE-LABlab(33.42, 58.95, -54.65)
CIE-LCHlch(33.42, 80.39, 317.17°)
OKLaboklab(45.29% 0.1331 -0.1551)
OKLCHoklch(45.29% 0.204 310.6)
XYZxyz(15.2982, 7.7341, 37.2387)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791DA7 #4BA71D
analogous
#341DA7 #791DA7 #A71D90
triadic
#791DA7 #A7791D #1DA779
tetradic
#791DA7 #A7341D #4BA71D #1D90A7
square
#791DA7 #A7341D #4BA71D #1D90A7
split-complementary
#791DA7 #90A71D #1DA734
monochromatic
#2D0B3F #531473 #791DA7 #9E28DA #B65CE3

Accessibility & contrast

On white

8.25
#791DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#791DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791DA7
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791DA7#FFFFFF#000000##FFFFFF
##791DA71.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791da7;
/* rgb */ color: rgb(121, 29, 167);
/* oklch */ color: oklch(45.3% 0.204 310.6);
Tailwind
colors: {
  custom: {
    50: '#a566c2',
    500: '#791da7',
    950: '#000000',
  },
}
SCSS
$custom: #791da7;
$custom-light: #a566c2;
$custom-dark: #000000;
JSON
{
  "hex": "#791da7",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 280,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45292,
    "c": 0.2044,
    "h": 310.6
  },
  "luminance": 0.07734
}

Semantic roles & 50–950 ramp

primary
#791DA7
secondary
#7EC759
accent
#ED3B76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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