#791BB3#791BB3

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

Color values

HEX#791BB3
RGBrgb(121, 27, 179)
HSLhsl(277, 74%, 40%)
HSVhsv(277, 85%, 70%)
CMYKcmyk(32.4%, 84.9%, 0%, 29.8%)
CIE-LABlab(34.20, 62.06, -60.57)
CIE-LCHlch(34.20, 86.72, 315.69°)
OKLaboklab(46.13% 0.1311 -0.1725)
OKLCHoklch(46.13% 0.217 307.2)
XYZxyz(16.4120, 8.1037, 43.3387)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791BB3 #55B31B
analogous
#2D1BB3 #791BB3 #B31BA1
triadic
#791BB3 #B3791B #1BB379
tetradic
#791BB3 #B32D1B #55B31B #1BA1B3
square
#791BB3 #B32D1B #55B31B #1BA1B3
split-complementary
#791BB3 #A1B31B #1BB32D
monochromatic
#310B49 #55137E #791BB3 #9B2CDF #B461E7

Accessibility & contrast

On white

8.01
#791BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791BB3
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791BB3#FFFFFF#000000##FFFFFF
##791BB31.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791bb3;
/* rgb */ color: rgb(121, 27, 179);
/* oklch */ color: oklch(46.1% 0.217 307.2);
Tailwind
colors: {
  custom: {
    50: '#a666cb',
    500: '#791bb3',
    950: '#000000',
  },
}
SCSS
$custom: #791bb3;
$custom-light: #a666cb;
$custom-dark: #000000;
JSON
{
  "hex": "#791bb3",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 277.105,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46133,
    "c": 0.21664,
    "h": 307.2
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#791BB3
secondary
#88CC5E
accent
#F0377E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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