#791CB3#791CB3

#791CB3 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.216 H 307.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#791CB3
RGBrgb(121, 28, 179)
HSLhsl(277, 73%, 41%)
HSVhsv(277, 84%, 70%)
CMYKcmyk(32.4%, 84.4%, 0%, 29.8%)
CIE-LABlab(34.29, 61.77, -60.41)
CIE-LCHlch(34.29, 86.41, 315.64°)
OKLaboklab(46.2% 0.1305 -0.172)
OKLCHoklch(46.2% 0.216 307.2)
XYZxyz(16.4353, 8.1503, 43.3464)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791CB3 #56B31C
analogous
#2E1CB3 #791CB3 #B31CA1
triadic
#791CB3 #B3791C #1CB379
tetradic
#791CB3 #B32E1C #56B31C #1CA1B3
square
#791CB3 #B32E1C #56B31C #1CA1B3
split-complementary
#791CB3 #A1B31C #1CB32E
monochromatic
#310B49 #55147E #791CB3 #9B2EDE #B463E7

Accessibility & contrast

On white

7.98
#791CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#791CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791CB3
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791CB3#FFFFFF#000000##FFFFFF
##791CB31.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.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: #791cb3;
/* rgb */ color: rgb(121, 28, 179);
/* oklch */ color: oklch(46.2% 0.216 307.2);
Tailwind
colors: {
  custom: {
    50: '#a666cb',
    500: '#791cb3',
    950: '#000000',
  },
}
SCSS
$custom: #791cb3;
$custom-light: #a666cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791cb3",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 276.954,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46199,
    "c": 0.2159,
    "h": 307.2
  },
  "luminance": 0.0815
}

Semantic roles & 50–950 ramp

primary
#791CB3
secondary
#89CB5F
accent
#F0387F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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