#793FC2#793FC2

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

Color values

HEX#793FC2
RGBrgb(121, 63, 194)
HSLhsl(267, 52%, 50%)
HSVhsv(267, 68%, 76%)
CMYKcmyk(37.6%, 67.5%, 0%, 23.9%)
CIE-LABlab(40.43, 51.13, -59.26)
CIE-LCHlch(40.43, 78.27, 310.79°)
OKLaboklab(50.89% 0.0965 -0.1689)
OKLCHoklch(50.89% 0.194 299.7)
XYZxyz(19.3979, 11.5148, 52.2291)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793FC2 #88C23F
analogous
#3F46C2 #793FC2 #BB3FC2
triadic
#793FC2 #C2793F #3FC279
tetradic
#793FC2 #C23F46 #88C23F #3FC2BB
square
#793FC2 #C23F46 #88C23F #3FC2BB
split-complementary
#793FC2 #C2BB3F #46C23F
monochromatic
#3F2066 #5C2F95 #793FC2 #996DD1 #BA9CE0

Accessibility & contrast

On white

6.36
#793FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #793FC2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793FC2#FFFFFF#000000##FFFFFF
##793FC21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#685E7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #793fc2;
/* rgb */ color: rgb(121, 63, 194);
/* oklch */ color: oklch(50.9% 0.194 299.7);
Tailwind
colors: {
  custom: {
    50: '#a578d5',
    500: '#793fc2',
    950: '#000000',
  },
}
SCSS
$custom: #793fc2;
$custom-light: #a578d5;
$custom-dark: #000000;
JSON
{
  "hex": "#793fc2",
  "rgb": {
    "r": 121,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 266.565,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50894,
    "c": 0.19448,
    "h": 299.7
  },
  "luminance": 0.11515
}

Semantic roles & 50–950 ramp

primary
#793FC2
secondary
#B2CC91
accent
#DB4D9C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #793FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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