#793EB2#793EB2

#793EB2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.6% C 0.178 H 304.0°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#793EB2
RGBrgb(121, 62, 178)
HSLhsl(271, 48%, 47%)
HSVhsv(271, 65%, 70%)
CMYKcmyk(32%, 65.2%, 0%, 30.2%)
CIE-LABlab(39.11, 47.66, -52.00)
CIE-LCHlch(39.11, 70.54, 312.51°)
OKLaboklab(49.58% 0.0994 -0.1475)
OKLCHoklch(49.58% 0.178 304)
XYZxyz(17.6418, 10.7246, 43.2515)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793EB2 #77B23E
analogous
#3F3EB2 #793EB2 #B23EB1
triadic
#793EB2 #B2793E #3EB279
tetradic
#793EB2 #B23F3E #77B23E #3EB1B2
square
#793EB2 #B23F3E #77B23E #3EB1B2
split-complementary
#793EB2 #B1B23E #3EB23F
monochromatic
#3B1E57 #5A2E85 #793EB2 #9764C9 #B692D9

Accessibility & contrast

On white

6.68
#793EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#793EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793EB2
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793EB2#FFFFFF#000000##FFFFFF
##793EB21.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#1A5CAF
Tritanopia (blue-blind)
#6E5772
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #793eb2;
/* rgb */ color: rgb(121, 62, 178);
/* oklch */ color: oklch(49.6% 0.178 304.0);
Tailwind
colors: {
  custom: {
    50: '#a477ca',
    500: '#793eb2',
    950: '#000000',
  },
}
SCSS
$custom: #793eb2;
$custom-light: #a477ca;
$custom-dark: #000000;
JSON
{
  "hex": "#793eb2",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 270.517,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49584,
    "c": 0.17785,
    "h": 304
  },
  "luminance": 0.10725
}

Semantic roles & 50–950 ramp

primary
#793EB2
secondary
#A5C488
accent
#D85093
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #793EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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