#793FB3#793FB3

#793FB3 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.178 H 303.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#793FB3
RGBrgb(121, 63, 179)
HSLhsl(270, 48%, 47%)
HSVhsv(270, 65%, 70%)
CMYKcmyk(32.4%, 64.8%, 0%, 29.8%)
CIE-LABlab(39.37, 47.39, -52.18)
CIE-LCHlch(39.37, 70.49, 312.25°)
OKLaboklab(49.79% 0.0981 -0.148)
OKLCHoklch(49.79% 0.178 303.5)
XYZxyz(17.7975, 10.8747, 43.8005)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793FB3 #79B33F
analogous
#3F3FB3 #793FB3 #B33FB3
triadic
#793FB3 #B3793F #3FB379
tetradic
#793FB3 #B33F3F #79B33F #3FB3B3
square
#793FB3 #B33F3F #79B33F #3FB3B3
split-complementary
#793FB3 #B3B33F #3FB33F
monochromatic
#3C1F58 #5A2F86 #793FB3 #9866C9 #B693D9

Accessibility & contrast

On white

6.61
#793FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#793FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793FB3
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793FB3#FFFFFF#000000##FFFFFF
##793FB31.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#1A5DB0
Tritanopia (blue-blind)
#6E5873
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #793fb3;
/* rgb */ color: rgb(121, 63, 179);
/* oklch */ color: oklch(49.8% 0.178 303.5);
Tailwind
colors: {
  custom: {
    50: '#a478ca',
    500: '#793fb3',
    950: '#000000',
  },
}
SCSS
$custom: #793fb3;
$custom-light: #a478ca;
$custom-dark: #000000;
JSON
{
  "hex": "#793fb3",
  "rgb": {
    "r": 121,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 270,
    "s": 47.934,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49791,
    "c": 0.1776,
    "h": 303.5
  },
  "luminance": 0.10875
}

Semantic roles & 50–950 ramp

primary
#793FB3
secondary
#A7C489
accent
#D85094
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #793FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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