#793EA7#793EA7

#793EA7 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.165 H 307.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#793EA7
RGBrgb(121, 62, 167)
HSLhsl(274, 46%, 45%)
HSVhsv(274, 63%, 65%)
CMYKcmyk(27.5%, 62.9%, 0%, 34.5%)
CIE-LABlab(38.38, 45.00, -46.65)
CIE-LCHlch(38.38, 64.81, 313.97°)
OKLaboklab(48.82% 0.1 -0.1318)
OKLCHoklch(48.82% 0.165 307.2)
XYZxyz(16.5814, 10.3004, 37.6664)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793EA7 #6CA73E
analogous
#443EA7 #793EA7 #A73EA1
triadic
#793EA7 #A7793E #3EA779
tetradic
#793EA7 #A7443E #6CA73E #3EA1A7
square
#793EA7 #A7443E #6CA73E #3EA1A7
split-complementary
#793EA7 #A1A73E #3EA744
monochromatic
#381D4E #592D7A #793EA7 #975FC3 #B48BD4

Accessibility & contrast

On white

6.86
#793EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#793EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #793EA7
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793EA7#FFFFFF#000000##FFFFFF
##793EA71.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0258AA
Deuteranopia (green-blind)
#2A5BA5
Tritanopia (blue-blind)
#72536D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #793ea7;
/* rgb */ color: rgb(121, 62, 167);
/* oklch */ color: oklch(48.8% 0.165 307.2);
Tailwind
colors: {
  custom: {
    50: '#a377c2',
    500: '#793ea7',
    950: '#000000',
  },
}
SCSS
$custom: #793ea7;
$custom-light: #a377c2;
$custom-dark: #000000;
JSON
{
  "hex": "#793ea7",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 273.714,
    "s": 45.852,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48817,
    "c": 0.16546,
    "h": 307.2
  },
  "luminance": 0.103
}

Semantic roles & 50–950 ramp

primary
#793EA7
secondary
#9DBF82
accent
#D6528C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #793EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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