#793EC5#793EC5

#793EC5 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 51.0% C 0.199 H 299.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#793EC5
RGBrgb(121, 62, 197)
HSLhsl(266, 54%, 51%)
HSVhsv(266, 69%, 77%)
CMYKcmyk(38.6%, 68.5%, 0%, 22.7%)
CIE-LABlab(40.48, 52.38, -60.94)
CIE-LCHlch(40.48, 80.36, 310.68°)
OKLaboklab(51% 0.0971 -0.1738)
OKLCHoklch(51% 0.199 299.2)
XYZxyz(19.6833, 11.5412, 54.0032)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793EC5 #8AC53E
analogous
#3E46C5 #793EC5 #BC3EC5
triadic
#793EC5 #C5793E #3EC579
tetradic
#793EC5 #C53E46 #8AC53E #3EC5BC
square
#793EC5 #C53E46 #8AC53E #3EC5BC
split-complementary
#793EC5 #C5BC3E #46C53E
monochromatic
#402069 #5C2E98 #793EC5 #9A6DD3 #BA9CE1

Accessibility & contrast

On white

6.35
#793EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#793EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793EC5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793EC5#FFFFFF#000000##FFFFFF
##793EC51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#675E7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #793ec5;
/* rgb */ color: rgb(121, 62, 197);
/* oklch */ color: oklch(51.0% 0.199 299.2);
Tailwind
colors: {
  custom: {
    50: '#a678d7',
    500: '#793ec5',
    950: '#000000',
  },
}
SCSS
$custom: #793ec5;
$custom-light: #a678d7;
$custom-dark: #000000;
JSON
{
  "hex": "#793ec5",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 266.222,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50995,
    "c": 0.19908,
    "h": 299.2
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

primary
#793EC5
secondary
#B3CD91
accent
#DD4B9D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #793EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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