#791FD5#791FD5

#791FD5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 49.4% C 0.245 H 298.6°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#791FD5
RGBrgb(121, 31, 213)
HSLhsl(270, 75%, 48%)
HSVhsv(270, 85%, 84%)
CMYKcmyk(43.2%, 85.4%, 0%, 16.5%)
CIE-LABlab(37.57, 68.38, -74.97)
CIE-LCHlch(37.57, 101.47, 312.37°)
OKLaboklab(49.37% 0.1172 -0.2147)
OKLCHoklch(49.37% 0.245 298.6)
XYZxyz(20.3823, 9.8487, 63.7650)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FD5 #7BD51F
analogous
#1F20D5 #791FD5 #D41FD5
triadic
#791FD5 #D5791F #1FD579
tetradic
#791FD5 #D51F20 #7BD51F #1FD5D4
square
#791FD5 #D51F20 #7BD51F #1FD5D4
split-complementary
#791FD5 #D5D41F #20D51F
monochromatic
#3C0F6A #5B17A0 #791FD5 #984CE5 #B782ED

Accessibility & contrast

On white

7.07
#791FD5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#791FD5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FD5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FD5#FFFFFF#000000##FFFFFF
##791FD51.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058DA
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#61577F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #791fd5;
/* rgb */ color: rgb(121, 31, 213);
/* oklch */ color: oklch(49.4% 0.245 298.6);
Tailwind
colors: {
  custom: {
    50: '#a96ae3',
    500: '#791fd5',
    950: '#000000',
  },
}
SCSS
$custom: #791fd5;
$custom-light: #a96ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#791fd5",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 213
  },
  "hsl": {
    "h": 269.67,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49368,
    "c": 0.24465,
    "h": 298.6
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

primary
#791FD5
secondary
#A8D57A
accent
#F13795
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #791FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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