#793EC4#793EC4

#793EC4 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.9% C 0.198 H 299.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#793EC4
RGBrgb(121, 62, 196)
HSLhsl(266, 53%, 51%)
HSVhsv(266, 68%, 77%)
CMYKcmyk(38.3%, 68.4%, 0%, 23.1%)
CIE-LABlab(40.40, 52.13, -60.48)
CIE-LCHlch(40.40, 79.84, 310.76°)
OKLaboklab(50.92% 0.0973 -0.1724)
OKLCHoklch(50.92% 0.198 299.4)
XYZxyz(19.5691, 11.4955, 53.4017)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793EC4 #89C43E
analogous
#3E46C4 #793EC4 #BC3EC4
triadic
#793EC4 #C4793E #3EC479
tetradic
#793EC4 #C43E46 #89C43E #3EC4BC
square
#793EC4 #C43E46 #89C43E #3EC4BC
split-complementary
#793EC4 #C4BC3E #46C43E
monochromatic
#3F2068 #5C2E97 #793EC4 #9A6DD2 #BA9CE1

Accessibility & contrast

On white

6.37
#793EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#793EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793EC4
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793EC4#FFFFFF#000000##FFFFFF
##793EC41.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#685E7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #793ec4;
/* rgb */ color: rgb(121, 62, 196);
/* oklch */ color: oklch(50.9% 0.198 299.4);
Tailwind
colors: {
  custom: {
    50: '#a578d7',
    500: '#793ec4',
    950: '#000000',
  },
}
SCSS
$custom: #793ec4;
$custom-light: #a578d7;
$custom-dark: #000000;
JSON
{
  "hex": "#793ec4",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 266.418,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.19798,
    "h": 299.4
  },
  "luminance": 0.11496
}

Semantic roles & 50–950 ramp

primary
#793EC4
secondary
#B2CD91
accent
#DD4B9D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #793EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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