#793FC4#793FC4

#793FC4 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.197 H 299.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#793FC4
RGBrgb(121, 63, 196)
HSLhsl(266, 53%, 51%)
HSVhsv(266, 68%, 77%)
CMYKcmyk(38.3%, 67.9%, 0%, 23.1%)
CIE-LABlab(40.58, 51.63, -60.19)
CIE-LCHlch(40.58, 79.30, 310.63°)
OKLaboklab(51.05% 0.0962 -0.1716)
OKLCHoklch(51.05% 0.197 299.3)
XYZxyz(19.6240, 11.6053, 53.4200)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793FC4 #8AC43F
analogous
#3F47C4 #793FC4 #BB3FC4
triadic
#793FC4 #C4793F #3FC479
tetradic
#793FC4 #C43F47 #8AC43F #3FC4BB
square
#793FC4 #C43F47 #8AC43F #3FC4BB
split-complementary
#793FC4 #C4BB3F #47C43F
monochromatic
#402068 #5C2E97 #793FC4 #9A6ED2 #BA9DE1

Accessibility & contrast

On white

6.32
#793FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#793FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793FC4
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793FC4#FFFFFF#000000##FFFFFF
##793FC41.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#685E7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #793fc4;
/* rgb */ color: rgb(121, 63, 196);
/* oklch */ color: oklch(51.0% 0.197 299.3);
Tailwind
colors: {
  custom: {
    50: '#a578d7',
    500: '#793fc4',
    950: '#000000',
  },
}
SCSS
$custom: #793fc4;
$custom-light: #a578d7;
$custom-dark: #000000;
JSON
{
  "hex": "#793fc4",
  "rgb": {
    "r": 121,
    "g": 63,
    "b": 196
  },
  "hsl": {
    "h": 266.165,
    "s": 52.988,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51046,
    "c": 0.19673,
    "h": 299.3
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#793FC4
secondary
#B3CD92
accent
#DC4B9D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #793FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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