#793EC2#793EC2

#793EC2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.8% C 0.196 H 299.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#793EC2
RGBrgb(121, 62, 194)
HSLhsl(267, 52%, 50%)
HSVhsv(267, 68%, 76%)
CMYKcmyk(37.6%, 68%, 0%, 23.9%)
CIE-LABlab(40.25, 51.63, -59.55)
CIE-LCHlch(40.25, 78.81, 310.92°)
OKLaboklab(50.77% 0.0976 -0.1697)
OKLCHoklch(50.77% 0.196 299.9)
XYZxyz(19.3430, 11.4051, 52.2108)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793EC2 #87C23E
analogous
#3E45C2 #793EC2 #BB3EC2
triadic
#793EC2 #C2793E #3EC279
tetradic
#793EC2 #C23E45 #87C23E #3EC2BB
square
#793EC2 #C23E45 #87C23E #3EC2BB
split-complementary
#793EC2 #C2BB3E #45C23E
monochromatic
#3F2066 #5C2F94 #793EC2 #996DD1 #BA9BDF

Accessibility & contrast

On white

6.40
#793EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#793EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793EC2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793EC2#FFFFFF#000000##FFFFFF
##793EC21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #793ec2;
/* rgb */ color: rgb(121, 62, 194);
/* oklch */ color: oklch(50.8% 0.196 299.9);
Tailwind
colors: {
  custom: {
    50: '#a577d5',
    500: '#793ec2',
    950: '#000000',
  },
}
SCSS
$custom: #793ec2;
$custom-light: #a577d5;
$custom-dark: #000000;
JSON
{
  "hex": "#793ec2",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 266.818,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50765,
    "c": 0.19576,
    "h": 299.9
  },
  "luminance": 0.11405
}

Semantic roles & 50–950 ramp

primary
#793EC2
secondary
#B1CB90
accent
#DB4C9B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #793EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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