#793E97#793E97

#793E97 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.147 H 312.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#793E97
RGBrgb(121, 62, 151)
HSLhsl(280, 42%, 42%)
HSVhsv(280, 59%, 59%)
CMYKcmyk(19.9%, 58.9%, 0%, 40.8%)
CIE-LABlab(37.38, 41.26, -38.61)
CIE-LCHlch(37.38, 56.51, 316.90°)
OKLaboklab(47.77% 0.1001 -0.1083)
OKLCHoklch(47.77% 0.147 312.8)
XYZxyz(15.1927, 9.7450, 30.3528)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793E97 #5C973E
analogous
#4D3E97 #793E97 #973E89
triadic
#793E97 #97793E #3E9779
tetradic
#793E97 #974D3E #5C973E #3E8997
square
#793E97 #974D3E #5C973E #3E8997
split-complementary
#793E97 #89973E #3E974D
monochromatic
#331A40 #562C6C #793E97 #9958BA #B483CC

Accessibility & contrast

On white

7.12
#793E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#793E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793E97
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793E97#FFFFFF#000000##FFFFFF
##793E971.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#395995
Tritanopia (blue-blind)
#764E64
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #793e97;
/* rgb */ color: rgb(121, 62, 151);
/* oklch */ color: oklch(47.8% 0.147 312.8);
Tailwind
colors: {
  custom: {
    50: '#a276b6',
    500: '#793e97',
    950: '#000000',
  },
}
SCSS
$custom: #793e97;
$custom-light: #a276b6;
$custom-dark: #000000;
JSON
{
  "hex": "#793e97",
  "rgb": {
    "r": 121,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 279.775,
    "s": 41.784,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47772,
    "c": 0.14745,
    "h": 312.8
  },
  "luminance": 0.09745
}

Semantic roles & 50–950 ramp

primary
#793E97
secondary
#8FB67A
accent
#D25680
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #793E97

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

Preview Lab → · Contrast checker → · Palette generator →

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