#791DAC#791DAC

#791DAC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.7% C 0.209 H 309.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#791DAC
RGBrgb(121, 29, 172)
HSLhsl(279, 71%, 39%)
HSVhsv(279, 83%, 67%)
CMYKcmyk(29.7%, 83.1%, 0%, 32.5%)
CIE-LABlab(33.82, 60.00, -57.01)
CIE-LCHlch(33.82, 82.76, 316.46°)
OKLaboklab(45.69% 0.1318 -0.162)
OKLCHoklch(45.69% 0.209 309.1)
XYZxyz(15.7694, 7.9225, 39.7202)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791DAC #50AC1D
analogous
#311DAC #791DAC #AC1D98
triadic
#791DAC #AC791D #1DAC79
tetradic
#791DAC #AC311D #50AC1D #1D98AC
square
#791DAC #AC311D #50AC1D #1D98AC
split-complementary
#791DAC #98AC1D #1DAC31
monochromatic
#2F0B43 #541478 #791DAC #9C2BDB #B55FE4

Accessibility & contrast

On white

8.13
#791DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#791DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791DAC
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791DAC#FFFFFF#000000##FFFFFF
##791DAC1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#714467
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #791dac;
/* rgb */ color: rgb(121, 29, 172);
/* oklch */ color: oklch(45.7% 0.209 309.1);
Tailwind
colors: {
  custom: {
    50: '#a566c6',
    500: '#791dac',
    950: '#000000',
  },
}
SCSS
$custom: #791dac;
$custom-light: #a566c6;
$custom-dark: #000000;
JSON
{
  "hex": "#791dac",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 172
  },
  "hsl": {
    "h": 278.601,
    "s": 71.144,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45693,
    "c": 0.20886,
    "h": 309.1
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#791DAC
secondary
#83C85C
accent
#EE3A7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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