#791EB3#791EB3

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

Color values

HEX#791EB3
RGBrgb(121, 30, 179)
HSLhsl(277, 71%, 41%)
HSVhsv(277, 83%, 70%)
CMYKcmyk(32.4%, 83.2%, 0%, 29.8%)
CIE-LABlab(34.49, 61.18, -60.09)
CIE-LCHlch(34.49, 85.75, 315.52°)
OKLaboklab(46.34% 0.1291 -0.1711)
OKLCHoklch(46.34% 0.214 307)
XYZxyz(16.4843, 8.2484, 43.3628)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791EB3 #58B31E
analogous
#2E1EB3 #791EB3 #B31EA2
triadic
#791EB3 #B3791E #1EB379
tetradic
#791EB3 #B32E1E #58B31E #1EA2B3
square
#791EB3 #B32E1E #58B31E #1EA2B3
split-complementary
#791EB3 #A2B31E #1EB32E
monochromatic
#320C4A #56157F #791EB3 #9A32DD #B466E5

Accessibility & contrast

On white

7.93
#791EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#791EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791EB3
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791EB3#FFFFFF#000000##FFFFFF
##791EB31.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791eb3;
/* rgb */ color: rgb(121, 30, 179);
/* oklch */ color: oklch(46.3% 0.214 307.0);
Tailwind
colors: {
  custom: {
    50: '#a667cb',
    500: '#791eb3',
    950: '#000000',
  },
}
SCSS
$custom: #791eb3;
$custom-light: #a667cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791eb3",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 276.644,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46338,
    "c": 0.21434,
    "h": 307
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#791EB3
secondary
#8BCB62
accent
#EE3A80
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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