#793AA2#793AA2

#793AA2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.166 H 309.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#793AA2
RGBrgb(121, 58, 162)
HSLhsl(276, 47%, 43%)
HSVhsv(276, 64%, 64%)
CMYKcmyk(25.3%, 64.2%, 0%, 36.5%)
CIE-LABlab(37.30, 45.87, -45.38)
CIE-LCHlch(37.30, 64.53, 315.31°)
OKLaboklab(47.93% 0.1052 -0.1281)
OKLCHoklch(47.93% 0.166 309.4)
XYZxyz(15.9185, 9.7000, 35.2091)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793AA2 #63A23A
analogous
#453AA2 #793AA2 #A23A97
triadic
#793AA2 #A2793A #3AA279
tetradic
#793AA2 #A2453A #63A23A #3A97A2
square
#793AA2 #A2453A #63A23A #3A97A2
split-complementary
#793AA2 #97A23A #3AA245
monochromatic
#361A48 #572A75 #793AA2 #9857C3 #B484D3

Accessibility & contrast

On white

7.14
#793AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#793AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793AA2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793AA2#FFFFFF#000000##FFFFFF
##793AA21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#2B59A0
Tritanopia (blue-blind)
#734F69
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #793aa2;
/* rgb */ color: rgb(121, 58, 162);
/* oklch */ color: oklch(47.9% 0.166 309.4);
Tailwind
colors: {
  custom: {
    50: '#a374be',
    500: '#793aa2',
    950: '#000000',
  },
}
SCSS
$custom: #793aa2;
$custom-light: #a374be;
$custom-dark: #000000;
JSON
{
  "hex": "#793aa2",
  "rgb": {
    "r": 121,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 276.346,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47932,
    "c": 0.16573,
    "h": 309.4
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#793AA2
secondary
#95BD7B
accent
#D75186
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #793AA2

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

Preview Lab → · Contrast checker → · Palette generator →

#793AA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva