#791FAC#791FAC

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

Color values

HEX#791FAC
RGBrgb(121, 31, 172)
HSLhsl(278, 69%, 40%)
HSVhsv(278, 82%, 67%)
CMYKcmyk(29.7%, 82%, 0%, 32.5%)
CIE-LABlab(34.03, 59.38, -56.66)
CIE-LCHlch(34.03, 82.08, 316.34°)
OKLaboklab(45.84% 0.1304 -0.161)
OKLCHoklch(45.84% 0.207 309)
XYZxyz(15.8200, 8.0238, 39.7371)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FAC #52AC1F
analogous
#331FAC #791FAC #AC1F98
triadic
#791FAC #AC791F #1FAC79
tetradic
#791FAC #AC331F #52AC1F #1F98AC
square
#791FAC #AC331F #52AC1F #1F98AC
split-complementary
#791FAC #98AC1F #1FAC33
monochromatic
#300C44 #551678 #791FAC #9C2FD9 #B463E3

Accessibility & contrast

On white

8.06
#791FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#791FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FAC
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FAC#FFFFFF#000000##FFFFFF
##791FAC1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791fac;
/* rgb */ color: rgb(121, 31, 172);
/* oklch */ color: oklch(45.8% 0.207 309.0);
Tailwind
colors: {
  custom: {
    50: '#a567c6',
    500: '#791fac',
    950: '#000000',
  },
}
SCSS
$custom: #791fac;
$custom-light: #a567c6;
$custom-dark: #000000;
JSON
{
  "hex": "#791fac",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 278.298,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4584,
    "c": 0.20719,
    "h": 309
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#791FAC
secondary
#85C85F
accent
#EC3C7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #791FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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