#791BB4#791BB4

#791BB4 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 7.99:1 contrast (WCAG AA passes).

Color values

HEX#791BB4
RGBrgb(121, 27, 180)
HSLhsl(277, 74%, 41%)
HSVhsv(277, 85%, 71%)
CMYKcmyk(32.8%, 85%, 0%, 29.4%)
CIE-LABlab(34.28, 62.27, -61.03)
CIE-LCHlch(34.28, 87.19, 315.58°)
OKLaboklab(46.22% 0.1308 -0.1738)
OKLCHoklch(46.22% 0.218 307)
XYZxyz(16.5135, 8.1443, 43.8732)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791BB4 #56B41B
analogous
#2D1BB4 #791BB4 #B41BA2
triadic
#791BB4 #B4791B #1BB479
tetradic
#791BB4 #B42D1B #56B41B #1BA2B4
square
#791BB4 #B42D1B #56B41B #1BA2B4
split-complementary
#791BB4 #A2B41B #1BB42D
monochromatic
#310B4A #55137F #791BB4 #9B2DDF #B462E7

Accessibility & contrast

On white

7.99
#791BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#791BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791BB4
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791BB4#FFFFFF#000000##FFFFFF
##791BB41.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.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: #791bb4;
/* rgb */ color: rgb(121, 27, 180);
/* oklch */ color: oklch(46.2% 0.218 307.0);
Tailwind
colors: {
  custom: {
    50: '#a666cb',
    500: '#791bb4',
    950: '#000000',
  },
}
SCSS
$custom: #791bb4;
$custom-light: #a666cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791bb4",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 276.863,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46216,
    "c": 0.21753,
    "h": 307
  },
  "luminance": 0.08144
}

Semantic roles & 50–950 ramp

primary
#791BB4
secondary
#89CC5F
accent
#F1377F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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