#794AA2#794AA2

#794AA2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.3% C 0.141 H 306.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#794AA2
RGBrgb(121, 74, 162)
HSLhsl(272, 37%, 46%)
HSVhsv(272, 54%, 64%)
CMYKcmyk(25.3%, 54.3%, 0%, 36.5%)
CIE-LABlab(40.53, 37.26, -40.22)
CIE-LCHlch(40.53, 54.82, 312.81°)
OKLaboklab(50.29% 0.0842 -0.113)
OKLCHoklch(50.29% 0.141 306.7)
XYZxyz(16.8542, 11.5713, 35.5210)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794AA2 #73A24A
analogous
#4D4AA2 #794AA2 #A24A9F
triadic
#794AA2 #A2794A #4AA279
tetradic
#794AA2 #A24D4A #73A24A #4A9FA2
square
#794AA2 #A24D4A #73A24A #4A9FA2
split-complementary
#794AA2 #9FA24A #4AA24D
monochromatic
#3A244E #5A3778 #794AA2 #976DBC #B597CF

Accessibility & contrast

On white

6.34
#794AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#794AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794AA2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794AA2#FFFFFF#000000##FFFFFF
##794AA21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#3D60A0
Tritanopia (blue-blind)
#735A6F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #794aa2;
/* rgb */ color: rgb(121, 74, 162);
/* oklch */ color: oklch(50.3% 0.141 306.7);
Tailwind
colors: {
  custom: {
    50: '#a27ebe',
    500: '#794aa2',
    950: '#000000',
  },
}
SCSS
$custom: #794aa2;
$custom-light: #a27ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#794aa2",
  "rgb": {
    "r": 121,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 272.045,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50291,
    "c": 0.14093,
    "h": 306.7
  },
  "luminance": 0.11571
}

Semantic roles & 50–950 ramp

primary
#794AA2
secondary
#A2BC8C
accent
#CD5B90
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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