#794FA3#794FA3

#794FA3 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.134 H 305.2°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#794FA3
RGBrgb(121, 79, 163)
HSLhsl(270, 35%, 47%)
HSVhsv(270, 52%, 64%)
CMYKcmyk(25.8%, 51.5%, 0%, 36.1%)
CIE-LABlab(41.69, 34.64, -38.97)
CIE-LCHlch(41.69, 52.14, 311.64°)
OKLaboklab(51.17% 0.0773 -0.1094)
OKLCHoklch(51.17% 0.134 305.2)
XYZxyz(17.2906, 12.3014, 36.1067)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794FA3 #79A34F
analogous
#4F4FA3 #794FA3 #A34FA3
triadic
#794FA3 #A3794F #4FA379
tetradic
#794FA3 #A34F4F #79A34F #4FA3A3
square
#794FA3 #A34F4F #79A34F #4FA3A3
split-complementary
#794FA3 #A3A34F #4FA34F
monochromatic
#3C2751 #5A3B7A #794FA3 #9874BB #B69DCF

Accessibility & contrast

On white

6.07
#794FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#794FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794FA3
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794FA3#FFFFFF#000000##FFFFFF
##794FA31.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A6
Deuteranopia (green-blind)
#4263A1
Tritanopia (blue-blind)
#725E71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #794fa3;
/* rgb */ color: rgb(121, 79, 163);
/* oklch */ color: oklch(51.2% 0.134 305.2);
Tailwind
colors: {
  custom: {
    50: '#a281bf',
    500: '#794fa3',
    950: '#000000',
  },
}
SCSS
$custom: #794fa3;
$custom-light: #a281bf;
$custom-dark: #000000;
JSON
{
  "hex": "#794fa3",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 163
  },
  "hsl": {
    "h": 270,
    "s": 34.711,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51172,
    "c": 0.13392,
    "h": 305.2
  },
  "luminance": 0.12301
}

Semantic roles & 50–950 ramp

primary
#794FA3
secondary
#A7BC91
accent
#CB5D94
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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