#794CA3#794CA3

#794CA3 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.7% C 0.139 H 305.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#794CA3
RGBrgb(121, 76, 163)
HSLhsl(271, 36%, 47%)
HSVhsv(271, 53%, 64%)
CMYKcmyk(25.8%, 53.4%, 0%, 36.1%)
CIE-LABlab(41.02, 36.36, -40.03)
CIE-LCHlch(41.02, 54.08, 312.25°)
OKLaboklab(50.68% 0.0815 -0.1125)
OKLCHoklch(50.68% 0.139 305.9)
XYZxyz(17.0791, 11.8783, 36.0362)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794CA3 #76A34C
analogous
#4D4CA3 #794CA3 #A34CA2
triadic
#794CA3 #A3794C #4CA379
tetradic
#794CA3 #A34D4C #76A34C #4CA2A3
square
#794CA3 #A34D4C #76A34C #4CA2A3
split-complementary
#794CA3 #A2A34C #4CA34D
monochromatic
#3B2550 #5A3979 #794CA3 #9770BC #B69AD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##794CA3#FFFFFF#000000##FFFFFF
##794CA31.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)
#315FA6
Deuteranopia (green-blind)
#3F61A1
Tritanopia (blue-blind)
#725C70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #794ca3;
/* rgb */ color: rgb(121, 76, 163);
/* oklch */ color: oklch(50.7% 0.139 305.9);
Tailwind
colors: {
  custom: {
    50: '#a27fbf',
    500: '#794ca3',
    950: '#000000',
  },
}
SCSS
$custom: #794ca3;
$custom-light: #a27fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#794ca3",
  "rgb": {
    "r": 121,
    "g": 76,
    "b": 163
  },
  "hsl": {
    "h": 271.034,
    "s": 36.402,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50676,
    "c": 0.13888,
    "h": 305.9
  },
  "luminance": 0.11878
}

Semantic roles & 50–950 ramp

primary
#794CA3
secondary
#A5BC8F
accent
#CC5B92
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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