#791EA9#791EA9

#791EA9 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.5% C 0.205 H 310.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#791EA9
RGBrgb(121, 30, 169)
HSLhsl(279, 70%, 39%)
HSVhsv(279, 82%, 66%)
CMYKcmyk(28.4%, 82.2%, 0%, 33.7%)
CIE-LABlab(33.69, 59.06, -55.43)
CIE-LCHlch(33.69, 81.00, 316.82°)
OKLaboklab(45.53% 0.1319 -0.1574)
OKLCHoklch(45.53% 0.205 310)
XYZxyz(15.5094, 7.8584, 38.2282)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791EA9 #4EA91E
analogous
#341EA9 #791EA9 #A91E94
triadic
#791EA9 #A9791E #1EA979
tetradic
#791EA9 #A9341E #4EA91E #1E94A9
square
#791EA9 #A9341E #4EA91E #1E94A9
split-complementary
#791EA9 #94A91E #1EA934
monochromatic
#2F0C41 #541575 #791EA9 #9D2BD9 #B55FE3

Accessibility & contrast

On white

8.17
#791EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#791EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791EA9
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791EA9#FFFFFF#000000##FFFFFF
##791EA91.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791ea9;
/* rgb */ color: rgb(121, 30, 169);
/* oklch */ color: oklch(45.5% 0.205 310.0);
Tailwind
colors: {
  custom: {
    50: '#a567c3',
    500: '#791ea9',
    950: '#000000',
  },
}
SCSS
$custom: #791ea9;
$custom-light: #a567c3;
$custom-dark: #000000;
JSON
{
  "hex": "#791ea9",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 279.281,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45525,
    "c": 0.20533,
    "h": 310
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#791EA9
secondary
#81C75C
accent
#ED3B78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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