#793BB7#793BB7

#793BB7 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.187 H 303.1°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#793BB7
RGBrgb(121, 59, 183)
HSLhsl(270, 51%, 47%)
HSVhsv(270, 68%, 72%)
CMYKcmyk(33.9%, 67.8%, 0%, 28.2%)
CIE-LABlab(38.92, 50.38, -55.26)
CIE-LCHlch(38.92, 74.78, 312.35°)
OKLaboklab(49.56% 0.1022 -0.1571)
OKLCHoklch(49.56% 0.187 303.1)
XYZxyz(17.9944, 10.6118, 45.8908)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793BB7 #79B73B
analogous
#3B3BB7 #793BB7 #B73BB7
triadic
#793BB7 #B7793B #3BB779
tetradic
#793BB7 #B73B3B #79B73B #3BB7B7
square
#793BB7 #B73B3B #79B73B #3BB7B7
split-complementary
#793BB7 #B7B73B #3BB73B
monochromatic
#3C1D5A #5A2C89 #793BB7 #9863CD #B691DC

Accessibility & contrast

On white

6.73
#793BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#793BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793BB7
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793BB7#FFFFFF#000000##FFFFFF
##793BB71.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#6D5774
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #793bb7;
/* rgb */ color: rgb(121, 59, 183);
/* oklch */ color: oklch(49.6% 0.187 303.1);
Tailwind
colors: {
  custom: {
    50: '#a475cd',
    500: '#793bb7',
    950: '#000000',
  },
}
SCSS
$custom: #793bb7;
$custom-light: #a475cd;
$custom-dark: #000000;
JSON
{
  "hex": "#793bb7",
  "rgb": {
    "r": 121,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 270,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49556,
    "c": 0.18743,
    "h": 303.1
  },
  "luminance": 0.10612
}

Semantic roles & 50–950 ramp

primary
#793BB7
secondary
#A7C687
accent
#DB4D94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #793BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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