#791DB3#791DB3

#791DB3 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.3% C 0.215 H 307.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#791DB3
RGBrgb(121, 29, 179)
HSLhsl(277, 72%, 41%)
HSVhsv(277, 84%, 70%)
CMYKcmyk(32.4%, 83.8%, 0%, 29.8%)
CIE-LABlab(34.39, 61.48, -60.25)
CIE-LCHlch(34.39, 86.08, 315.58°)
OKLaboklab(46.27% 0.1298 -0.1716)
OKLCHoklch(46.27% 0.215 307.1)
XYZxyz(16.4594, 8.1986, 43.3545)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791DB3 #57B31D
analogous
#2E1DB3 #791DB3 #B31DA2
triadic
#791DB3 #B3791D #1DB379
tetradic
#791DB3 #B32E1D #57B31D #1DA2B3
square
#791DB3 #B32E1D #57B31D #1DA2B3
split-complementary
#791DB3 #A2B31D #1DB32E
monochromatic
#320C4A #55147E #791DB3 #9A30DD #B464E6

Accessibility & contrast

On white

7.96
#791DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#791DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791DB3
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791DB3#FFFFFF#000000##FFFFFF
##791DB31.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#6F476B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #791db3;
/* rgb */ color: rgb(121, 29, 179);
/* oklch */ color: oklch(46.3% 0.215 307.1);
Tailwind
colors: {
  custom: {
    50: '#a667cb',
    500: '#791db3',
    950: '#000000',
  },
}
SCSS
$custom: #791db3;
$custom-light: #a667cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791db3",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 276.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46268,
    "c": 0.21514,
    "h": 307.1
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#791DB3
secondary
#8ACB61
accent
#EF397F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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