#791DB1#791DB1

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

Color values

HEX#791DB1
RGBrgb(121, 29, 177)
HSLhsl(277, 72%, 40%)
HSVhsv(277, 84%, 69%)
CMYKcmyk(31.6%, 83.6%, 0%, 30.6%)
CIE-LABlab(34.23, 61.06, -59.33)
CIE-LCHlch(34.23, 85.14, 315.82°)
OKLaboklab(46.1% 0.1304 -0.1689)
OKLCHoklch(46.1% 0.213 307.7)
XYZxyz(16.2586, 8.1182, 42.2969)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791DB1 #55B11D
analogous
#2F1DB1 #791DB1 #B11D9F
triadic
#791DB1 #B1791D #1DB179
tetradic
#791DB1 #B12F1D #55B11D #1D9FB1
square
#791DB1 #B12F1D #55B11D #1D9FB1
split-complementary
#791DB1 #9FB11D #1DB12F
monochromatic
#310C48 #55147C #791DB1 #9B2EDD #B463E5

Accessibility & contrast

On white

8.00
#791DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791DB1
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791DB1#FFFFFF#000000##FFFFFF
##791DB11.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#70466A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #791db1;
/* rgb */ color: rgb(121, 29, 177);
/* oklch */ color: oklch(46.1% 0.213 307.7);
Tailwind
colors: {
  custom: {
    50: '#a667c9',
    500: '#791db1',
    950: '#000000',
  },
}
SCSS
$custom: #791db1;
$custom-light: #a667c9;
$custom-dark: #000000;
JSON
{
  "hex": "#791db1",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 177
  },
  "hsl": {
    "h": 277.297,
    "s": 71.845,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46102,
    "c": 0.21334,
    "h": 307.7
  },
  "luminance": 0.08118
}

Semantic roles & 50–950 ramp

primary
#791DB1
secondary
#88CA60
accent
#EF397E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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