#791FB3#791FB3

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

Color values

HEX#791FB3
RGBrgb(121, 31, 179)
HSLhsl(276, 70%, 41%)
HSVhsv(276, 83%, 70%)
CMYKcmyk(32.4%, 82.7%, 0%, 29.8%)
CIE-LABlab(34.60, 60.88, -59.92)
CIE-LCHlch(34.60, 85.42, 315.46°)
OKLaboklab(46.41% 0.1285 -0.1706)
OKLCHoklch(46.41% 0.214 307)
XYZxyz(16.5101, 8.2998, 43.3713)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FB3 #59B31F
analogous
#2F1FB3 #791FB3 #B31FA3
triadic
#791FB3 #B3791F #1FB379
tetradic
#791FB3 #B32F1F #59B31F #1FA3B3
square
#791FB3 #B32F1F #59B31F #1FA3B3
split-complementary
#791FB3 #A3B31F #1FB32F
monochromatic
#320D4B #56167F #791FB3 #9A33DC #B468E5

Accessibility & contrast

On white

7.89
#791FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#791FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FB3
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FB3#FFFFFF#000000##FFFFFF
##791FB31.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791fb3;
/* rgb */ color: rgb(121, 31, 179);
/* oklch */ color: oklch(46.4% 0.214 307.0);
Tailwind
colors: {
  custom: {
    50: '#a668cb',
    500: '#791fb3',
    950: '#000000',
  },
}
SCSS
$custom: #791fb3;
$custom-light: #a668cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791fb3",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 276.486,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46411,
    "c": 0.21354,
    "h": 307
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#791FB3
secondary
#8CCA64
accent
#ED3B81
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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