#791FA4#791FA4

#791FA4 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.200 H 311.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#791FA4
RGBrgb(121, 31, 164)
HSLhsl(281, 68%, 38%)
HSVhsv(281, 81%, 64%)
CMYKcmyk(26.2%, 81.1%, 0%, 35.7%)
CIE-LABlab(33.41, 57.70, -52.87)
CIE-LCHlch(33.41, 78.26, 317.50°)
OKLaboklab(45.21% 0.1323 -0.1499)
OKLCHoklch(45.21% 0.2 311.4)
XYZxyz(15.0747, 7.7257, 35.8119)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FA4 #4AA41F
analogous
#371FA4 #791FA4 #A41F8C
triadic
#791FA4 #A4791F #1FA479
tetradic
#791FA4 #A4371F #4AA41F #1F8CA4
square
#791FA4 #A4371F #4AA41F #1F8CA4
split-complementary
#791FA4 #8CA41F #1FA437
monochromatic
#2D0C3D #531571 #791FA4 #9F2AD7 #B65DE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##791FA4#FFFFFF#000000##FFFFFF
##791FA41.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)
#004BA8
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#734162
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #791fa4;
/* rgb */ color: rgb(121, 31, 164);
/* oklch */ color: oklch(45.2% 0.200 311.4);
Tailwind
colors: {
  custom: {
    50: '#a567c0',
    500: '#791fa4',
    950: '#000000',
  },
}
SCSS
$custom: #791fa4;
$custom-light: #a567c0;
$custom-dark: #000000;
JSON
{
  "hex": "#791fa4",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 280.602,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45206,
    "c": 0.19996,
    "h": 311.4
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#791FA4
secondary
#7DC55A
accent
#EB3D75
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #791FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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