#793FC5#793FC5

#793FC5 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.198 H 299.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#793FC5
RGBrgb(121, 63, 197)
HSLhsl(266, 54%, 51%)
HSVhsv(266, 68%, 77%)
CMYKcmyk(38.6%, 68%, 0%, 22.7%)
CIE-LABlab(40.66, 51.89, -60.65)
CIE-LCHlch(40.66, 79.81, 310.55°)
OKLaboklab(51.12% 0.0961 -0.1729)
OKLCHoklch(51.12% 0.198 299.1)
XYZxyz(19.7382, 11.6509, 54.0214)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793FC5 #8BC53F
analogous
#3F48C5 #793FC5 #BC3FC5
triadic
#793FC5 #C5793F #3FC579
tetradic
#793FC5 #C53F48 #8BC53F #3FC5BC
square
#793FC5 #C53F48 #8BC53F #3FC5BC
split-complementary
#793FC5 #C5BC3F #48C53F
monochromatic
#40206A #5C2E99 #793FC5 #9A6ED3 #BB9DE1

Accessibility & contrast

On white

6.31
#793FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#793FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793FC5
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793FC5#FFFFFF#000000##FFFFFF
##793FC51.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#675F7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #793fc5;
/* rgb */ color: rgb(121, 63, 197);
/* oklch */ color: oklch(51.1% 0.198 299.1);
Tailwind
colors: {
  custom: {
    50: '#a578d7',
    500: '#793fc5',
    950: '#000000',
  },
}
SCSS
$custom: #793fc5;
$custom-light: #a578d7;
$custom-dark: #000000;
JSON
{
  "hex": "#793fc5",
  "rgb": {
    "r": 121,
    "g": 63,
    "b": 197
  },
  "hsl": {
    "h": 265.97,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51122,
    "c": 0.19785,
    "h": 299.1
  },
  "luminance": 0.11651
}

Semantic roles & 50–950 ramp

primary
#793FC5
secondary
#B4CE92
accent
#DD4B9E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #793FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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