#791FB4#791FB4

#791FB4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.5% C 0.214 H 306.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#791FB4
RGBrgb(121, 31, 180)
HSLhsl(276, 71%, 41%)
HSVhsv(276, 83%, 71%)
CMYKcmyk(32.8%, 82.8%, 0%, 29.4%)
CIE-LABlab(34.68, 61.09, -60.38)
CIE-LCHlch(34.68, 85.89, 315.34°)
OKLaboklab(46.49% 0.1282 -0.1719)
OKLCHoklch(46.49% 0.214 306.7)
XYZxyz(16.6116, 8.3404, 43.9059)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FB4 #5AB41F
analogous
#2F1FB4 #791FB4 #B41FA5
triadic
#791FB4 #B4791F #1FB479
tetradic
#791FB4 #B42F1F #5AB41F #1FA5B4
square
#791FB4 #B42F1F #5AB41F #1FA5B4
split-complementary
#791FB4 #A5B41F #1FB42F
monochromatic
#330D4C #561680 #791FB4 #9A34DC #B468E5

Accessibility & contrast

On white

7.87
#791FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#791FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FB4
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FB4#FFFFFF#000000##FFFFFF
##791FB41.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#6E486C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #791fb4;
/* rgb */ color: rgb(121, 31, 180);
/* oklch */ color: oklch(46.5% 0.214 306.7);
Tailwind
colors: {
  custom: {
    50: '#a668cb',
    500: '#791fb4',
    950: '#000000',
  },
}
SCSS
$custom: #791fb4;
$custom-light: #a668cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791fb4",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 276.242,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46494,
    "c": 0.21445,
    "h": 306.7
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

primary
#791FB4
secondary
#8DCB64
accent
#ED3A81
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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