#794F97#794F97

#794F97 is a mid, moderate violet. Relative luminance 0.119; OKLCH L 50.5% C 0.119 H 309.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#794F97
RGBrgb(121, 79, 151)
HSLhsl(275, 31%, 45%)
HSVhsv(275, 48%, 59%)
CMYKcmyk(19.9%, 47.7%, 0%, 40.8%)
CIE-LABlab(41.04, 31.72, -32.81)
CIE-LCHlch(41.04, 45.64, 314.03°)
OKLaboklab(50.48% 0.0758 -0.0914)
OKLCHoklch(50.48% 0.119 309.7)
XYZxyz(16.2660, 11.8915, 30.7106)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794F97 #6D974F
analogous
#554F97 #794F97 #974F91
triadic
#794F97 #97794F #4F9779
tetradic
#794F97 #97554F #6D974F #4F9197
square
#794F97 #97554F #6D974F #4F9197
split-complementary
#794F97 #91974F #4F9755
monochromatic
#392547 #593A6F #794F97 #976FB4 #B498C9

Accessibility & contrast

On white

6.22
#794F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#794F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794F97
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794F97#FFFFFF#000000##FFFFFF
##794F971.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#755B6C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #794f97;
/* rgb */ color: rgb(121, 79, 151);
/* oklch */ color: oklch(50.5% 0.119 309.7);
Tailwind
colors: {
  custom: {
    50: '#a181b6',
    500: '#794f97',
    950: '#000000',
  },
}
SCSS
$custom: #794f97;
$custom-light: #a181b6;
$custom-dark: #000000;
JSON
{
  "hex": "#794f97",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 275,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50478,
    "c": 0.1188,
    "h": 309.7
  },
  "luminance": 0.11891
}

Semantic roles & 50–950 ramp

primary
#794F97
secondary
#9DB68C
accent
#C7608B
background
#FAF7FB
surface
#F3EEF6
border
#CDC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #794F97

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

Preview Lab → · Contrast checker → · Palette generator →

#794F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva