#791BE2#791BE2

#791BE2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 50.3% C 0.259 H 296.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#791BE2
RGBrgb(121, 27, 226)
HSLhsl(268, 79%, 50%)
HSVhsv(268, 88%, 89%)
CMYKcmyk(46.5%, 88.1%, 0%, 11.4%)
CIE-LABlab(38.44, 72.32, -80.99)
CIE-LCHlch(38.44, 108.59, 311.76°)
OKLaboklab(50.33% 0.1141 -0.2324)
OKLCHoklch(50.33% 0.259 296.2)
XYZxyz(22.0009, 10.3392, 72.7733)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791BE2 #84E21B
analogous
#1B20E2 #791BE2 #DD1BE2
triadic
#791BE2 #E2791B #1BE279
tetradic
#791BE2 #E21B20 #84E21B #1BE2DD
square
#791BE2 #E21B20 #84E21B #1BE2DD
split-complementary
#791BE2 #E2DD1B #20E21B
monochromatic
#3E0E75 #5C14AB #791BE2 #9950EA #B987F1

Accessibility & contrast

On white

6.84
#791BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#791BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #791BE2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791BE2#FFFFFF#000000##FFFFFF
##791BE21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE7
Deuteranopia (green-blind)
#0058DF
Tritanopia (blue-blind)
#5A5C86
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #791be2;
/* rgb */ color: rgb(121, 27, 226);
/* oklch */ color: oklch(50.3% 0.259 296.2);
Tailwind
colors: {
  custom: {
    50: '#aa69ed',
    500: '#791be2',
    950: '#000000',
  },
}
SCSS
$custom: #791be2;
$custom-light: #aa69ed;
$custom-dark: #000000;
JSON
{
  "hex": "#791be2",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 226
  },
  "hsl": {
    "h": 268.342,
    "s": 78.656,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50334,
    "c": 0.25887,
    "h": 296.2
  },
  "luminance": 0.1034
}

Semantic roles & 50–950 ramp

primary
#791BE2
secondary
#AFDA7F
accent
#F53399
background
#FBF6FE
surface
#F6ECFD
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #791BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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