#791AB3#791AB3

#791AB3 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.1% C 0.217 H 307.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#791AB3
RGBrgb(121, 26, 179)
HSLhsl(277, 75%, 40%)
HSVhsv(277, 85%, 70%)
CMYKcmyk(32.4%, 85.5%, 0%, 29.8%)
CIE-LABlab(34.10, 62.33, -60.72)
CIE-LCHlch(34.10, 87.02, 315.75°)
OKLaboklab(46.07% 0.1317 -0.1729)
OKLCHoklch(46.07% 0.217 307.3)
XYZxyz(16.3895, 8.0586, 43.3311)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791AB3 #54B31A
analogous
#2D1AB3 #791AB3 #B31AA0
triadic
#791AB3 #B3791A #1AB379
tetradic
#791AB3 #B32D1A #54B31A #1AA0B3
square
#791AB3 #B32D1A #54B31A #1AA0B3
split-complementary
#791AB3 #A0B31A #1AB32D
monochromatic
#310A48 #55127E #791AB3 #9B2AE0 #B460E8

Accessibility & contrast

On white

8.04
#791AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#791AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791AB3
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791AB3#FFFFFF#000000##FFFFFF
##791AB31.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#6F466A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #791ab3;
/* rgb */ color: rgb(121, 26, 179);
/* oklch */ color: oklch(46.1% 0.217 307.3);
Tailwind
colors: {
  custom: {
    50: '#a666cb',
    500: '#791ab3',
    950: '#000000',
  },
}
SCSS
$custom: #791ab3;
$custom-light: #a666cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791ab3",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 277.255,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46068,
    "c": 0.21736,
    "h": 307.3
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

primary
#791AB3
secondary
#87CC5D
accent
#F1377D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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