#793EA6#793EA6

#793EA6 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.164 H 307.5°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#793EA6
RGBrgb(121, 62, 166)
HSLhsl(274, 46%, 45%)
HSVhsv(274, 63%, 65%)
CMYKcmyk(27.1%, 62.7%, 0%, 34.9%)
CIE-LABlab(38.31, 44.76, -46.15)
CIE-LCHlch(38.31, 64.29, 314.12°)
OKLaboklab(48.75% 0.1001 -0.1303)
OKLCHoklch(48.75% 0.164 307.5)
XYZxyz(16.4893, 10.2636, 37.1814)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793EA6 #6BA63E
analogous
#453EA6 #793EA6 #A63E9F
triadic
#793EA6 #A6793E #3EA679
tetradic
#793EA6 #A6453E #6BA63E #3E9FA6
square
#793EA6 #A6453E #6BA63E #3E9FA6
split-complementary
#793EA6 #9FA63E #3EA645
monochromatic
#381D4D #592D79 #793EA6 #975EC3 #B48BD4

Accessibility & contrast

On white

6.88
#793EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#793EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793EA6
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793EA6#FFFFFF#000000##FFFFFF
##793EA61.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0658A9
Deuteranopia (green-blind)
#2C5BA4
Tritanopia (blue-blind)
#72536C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #793ea6;
/* rgb */ color: rgb(121, 62, 166);
/* oklch */ color: oklch(48.7% 0.164 307.5);
Tailwind
colors: {
  custom: {
    50: '#a377c1',
    500: '#793ea6',
    950: '#000000',
  },
}
SCSS
$custom: #793ea6;
$custom-light: #a377c1;
$custom-dark: #000000;
JSON
{
  "hex": "#793ea6",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 274.038,
    "s": 45.614,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48749,
    "c": 0.16434,
    "h": 307.5
  },
  "luminance": 0.10263
}

Semantic roles & 50–950 ramp

primary
#793EA6
secondary
#9CBE82
accent
#D5538B
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #793EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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