#791EAC#791EAC

#791EAC is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.8% C 0.208 H 309.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#791EAC
RGBrgb(121, 30, 172)
HSLhsl(278, 70%, 40%)
HSVhsv(278, 83%, 67%)
CMYKcmyk(29.7%, 82.6%, 0%, 32.5%)
CIE-LABlab(33.93, 59.69, -56.84)
CIE-LCHlch(33.93, 82.42, 316.40°)
OKLaboklab(45.77% 0.1311 -0.1615)
OKLCHoklch(45.77% 0.208 309.1)
XYZxyz(15.7943, 7.9724, 39.7285)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791EAC #51AC1E
analogous
#321EAC #791EAC #AC1E98
triadic
#791EAC #AC791E #1EAC79
tetradic
#791EAC #AC321E #51AC1E #1E98AC
square
#791EAC #AC321E #51AC1E #1E98AC
split-complementary
#791EAC #98AC1E #1EAC32
monochromatic
#300C44 #541578 #791EAC #9C2DDA #B561E3

Accessibility & contrast

On white

8.09
#791EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#791EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791EAC
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791EAC#FFFFFF#000000##FFFFFF
##791EAC1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.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: #791eac;
/* rgb */ color: rgb(121, 30, 172);
/* oklch */ color: oklch(45.8% 0.208 309.1);
Tailwind
colors: {
  custom: {
    50: '#a567c6',
    500: '#791eac',
    950: '#000000',
  },
}
SCSS
$custom: #791eac;
$custom-light: #a567c6;
$custom-dark: #000000;
JSON
{
  "hex": "#791eac",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 278.451,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45766,
    "c": 0.20804,
    "h": 309.1
  },
  "luminance": 0.07972
}

Semantic roles & 50–950 ramp

primary
#791EAC
secondary
#84C85E
accent
#ED3B7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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