#794F9D#794F9D

#794F9D is a mid, vivid violet. Relative luminance 0.121; OKLCH L 50.8% C 0.126 H 307.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#794F9D
RGBrgb(121, 79, 157)
HSLhsl(272, 33%, 46%)
HSVhsv(272, 50%, 62%)
CMYKcmyk(22.9%, 49.7%, 0%, 38.4%)
CIE-LABlab(41.36, 33.17, -35.91)
CIE-LCHlch(41.36, 48.88, 312.73°)
OKLaboklab(50.82% 0.0766 -0.1004)
OKLCHoklch(50.82% 0.126 307.3)
XYZxyz(16.7657, 12.0914, 33.3424)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794F9D #739D4F
analogous
#524F9D #794F9D #9D4F9A
triadic
#794F9D #9D794F #4F9D79
tetradic
#794F9D #9D524F #739D4F #4F9A9D
square
#794F9D #9D524F #739D4F #4F9A9D
split-complementary
#794F9D #9A9D4F #4F9D52
monochromatic
#3A264C #5A3B74 #794F9D #9771B8 #B59ACC

Accessibility & contrast

On white

6.14
#794F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#794F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794F9D
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794F9D#FFFFFF#000000##FFFFFF
##794F9D1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#46629B
Tritanopia (blue-blind)
#745C6E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #794f9d;
/* rgb */ color: rgb(121, 79, 157);
/* oklch */ color: oklch(50.8% 0.126 307.3);
Tailwind
colors: {
  custom: {
    50: '#a281ba',
    500: '#794f9d',
    950: '#000000',
  },
}
SCSS
$custom: #794f9d;
$custom-light: #a281ba;
$custom-dark: #000000;
JSON
{
  "hex": "#794f9d",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 272.308,
    "s": 33.051,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50819,
    "c": 0.12635,
    "h": 307.3
  },
  "luminance": 0.12091
}

Semantic roles & 50–950 ramp

primary
#794F9D
secondary
#A2B98F
accent
#C95F90
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #794F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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