#791AB4#791AB4

#791AB4 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.2% C 0.218 H 307.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#791AB4
RGBrgb(121, 26, 180)
HSLhsl(277, 75%, 40%)
HSVhsv(277, 86%, 71%)
CMYKcmyk(32.8%, 85.6%, 0%, 29.4%)
CIE-LABlab(34.19, 62.54, -61.18)
CIE-LCHlch(34.19, 87.49, 315.63°)
OKLaboklab(46.15% 0.1314 -0.1743)
OKLCHoklch(46.15% 0.218 307)
XYZxyz(16.4910, 8.0992, 43.8657)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791AB4 #55B41A
analogous
#2C1AB4 #791AB4 #B41AA2
triadic
#791AB4 #B4791A #1AB479
tetradic
#791AB4 #B42C1A #55B41A #1AA2B4
square
#791AB4 #B42C1A #55B41A #1AA2B4
split-complementary
#791AB4 #A2B41A #1AB42C
monochromatic
#310B49 #55127F #791AB4 #9B2BE0 #B460E8

Accessibility & contrast

On white

8.02
#791AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#791AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791AB4
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791AB4#FFFFFF#000000##FFFFFF
##791AB41.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791ab4;
/* rgb */ color: rgb(121, 26, 180);
/* oklch */ color: oklch(46.2% 0.218 307.0);
Tailwind
colors: {
  custom: {
    50: '#a666cb',
    500: '#791ab4',
    950: '#000000',
  },
}
SCSS
$custom: #791ab4;
$custom-light: #a666cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791ab4",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 277.013,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46152,
    "c": 0.21824,
    "h": 307
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#791AB4
secondary
#88CC5D
accent
#F1367E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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