#791CA9#791CA9

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

Color values

HEX#791CA9
RGBrgb(121, 28, 169)
HSLhsl(280, 72%, 39%)
HSVhsv(280, 83%, 66%)
CMYKcmyk(28.4%, 83.4%, 0%, 33.7%)
CIE-LABlab(33.48, 59.67, -55.76)
CIE-LCHlch(33.48, 81.67, 316.94°)
OKLaboklab(45.38% 0.1333 -0.1584)
OKLCHoklch(45.38% 0.207 310.1)
XYZxyz(15.4604, 7.7604, 38.2119)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791CA9 #4CA91C
analogous
#321CA9 #791CA9 #A91C92
triadic
#791CA9 #A9791C #1CA979
tetradic
#791CA9 #A9321C #4CA91C #1C92A9
square
#791CA9 #A9321C #4CA91C #1C92A9
split-complementary
#791CA9 #92A91C #1CA932
monochromatic
#2E0B40 #531374 #791CA9 #9E27DB #B55BE4

Accessibility & contrast

On white

8.23
#791CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791CA9
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791CA9#FFFFFF#000000##FFFFFF
##791CA91.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#724265
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #791ca9;
/* rgb */ color: rgb(121, 28, 169);
/* oklch */ color: oklch(45.4% 0.207 310.1);
Tailwind
colors: {
  custom: {
    50: '#a566c3',
    500: '#791ca9',
    950: '#000000',
  },
}
SCSS
$custom: #791ca9;
$custom-light: #a566c3;
$custom-dark: #000000;
JSON
{
  "hex": "#791ca9",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 279.574,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4538,
    "c": 0.207,
    "h": 310.1
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#791CA9
secondary
#7FC859
accent
#EE3977
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #791CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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