#794AB3#794AB3

#794AB3 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.4% C 0.162 H 301.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#794AB3
RGBrgb(121, 74, 179)
HSLhsl(267, 42%, 50%)
HSVhsv(267, 59%, 70%)
CMYKcmyk(32.4%, 58.7%, 0%, 29.8%)
CIE-LABlab(41.56, 41.50, -48.65)
CIE-LCHlch(41.56, 63.95, 310.47°)
OKLaboklab(51.38% 0.0847 -0.1377)
OKLCHoklch(51.38% 0.162 301.6)
XYZxyz(18.4687, 12.2171, 44.0242)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794AB3 #84B34A
analogous
#4A50B3 #794AB3 #AE4AB3
triadic
#794AB3 #B3794A #4AB379
tetradic
#794AB3 #B34A50 #84B34A #4AB3AE
square
#794AB3 #B34A50 #84B34A #4AB3AE
split-complementary
#794AB3 #B3AE4A #50B34A
monochromatic
#3E265C #5C3888 #794AB3 #9974C6 #B9A0D8

Accessibility & contrast

On white

6.10
#794AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#794AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794AB3
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794AB3#FFFFFF#000000##FFFFFF
##794AB31.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1761B6
Deuteranopia (green-blind)
#2D62B1
Tritanopia (blue-blind)
#6D5F77
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #794ab3;
/* rgb */ color: rgb(121, 74, 179);
/* oklch */ color: oklch(51.4% 0.162 301.6);
Tailwind
colors: {
  custom: {
    50: '#a37eca',
    500: '#794ab3',
    950: '#000000',
  },
}
SCSS
$custom: #794ab3;
$custom-light: #a37eca;
$custom-dark: #000000;
JSON
{
  "hex": "#794ab3",
  "rgb": {
    "r": 121,
    "g": 74,
    "b": 179
  },
  "hsl": {
    "h": 266.857,
    "s": 41.502,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51383,
    "c": 0.16169,
    "h": 301.6
  },
  "luminance": 0.12217
}

Semantic roles & 50–950 ramp

primary
#794AB3
secondary
#AFC494
accent
#D1569A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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