#791CB4#791CB4

#791CB4 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.3% C 0.217 H 306.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#791CB4
RGBrgb(121, 28, 180)
HSLhsl(277, 73%, 41%)
HSVhsv(277, 84%, 71%)
CMYKcmyk(32.8%, 84.4%, 0%, 29.4%)
CIE-LABlab(34.38, 61.99, -60.87)
CIE-LCHlch(34.38, 86.88, 315.52°)
OKLaboklab(46.28% 0.1301 -0.1734)
OKLCHoklch(46.28% 0.217 306.9)
XYZxyz(16.5368, 8.1909, 43.8810)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791CB4 #57B41C
analogous
#2D1CB4 #791CB4 #B41CA3
triadic
#791CB4 #B4791C #1CB479
tetradic
#791CB4 #B42D1C #57B41C #1CA3B4
square
#791CB4 #B42D1C #57B41C #1CA3B4
split-complementary
#791CB4 #A3B41C #1CB42D
monochromatic
#320C4A #55147F #791CB4 #9A2FDF #B464E7

Accessibility & contrast

On white

7.96
#791CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#791CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791CB4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791CB4#FFFFFF#000000##FFFFFF
##791CB41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#6F476B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #791cb4;
/* rgb */ color: rgb(121, 28, 180);
/* oklch */ color: oklch(46.3% 0.217 306.9);
Tailwind
colors: {
  custom: {
    50: '#a667cb',
    500: '#791cb4',
    950: '#000000',
  },
}
SCSS
$custom: #791cb4;
$custom-light: #a667cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791cb4",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 276.711,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46283,
    "c": 0.21679,
    "h": 306.9
  },
  "luminance": 0.08191
}

Semantic roles & 50–950 ramp

primary
#791CB4
secondary
#8ACC60
accent
#F0387F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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