#794FAB#794FAB

#794FAB is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.144 H 302.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#794FAB
RGBrgb(121, 79, 171)
HSLhsl(267, 37%, 49%)
HSVhsv(267, 54%, 67%)
CMYKcmyk(29.2%, 53.8%, 0%, 32.9%)
CIE-LABlab(42.15, 36.65, -42.98)
CIE-LCHlch(42.15, 56.48, 310.45°)
OKLaboklab(51.66% 0.0779 -0.1211)
OKLCHoklch(51.66% 0.144 302.8)
XYZxyz(18.0302, 12.5972, 40.0018)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794FAB #81AB4F
analogous
#4F53AB #794FAB #A74FAB
triadic
#794FAB #AB794F #4FAB79
tetradic
#794FAB #AB4F53 #81AB4F #4FABA7
square
#794FAB #AB4F53 #81AB4F #4FABA7
split-complementary
#794FAB #ABA74F #53AB4F
monochromatic
#3E2857 #5B3C81 #794FAB #9877C0 #B8A1D4

Accessibility & contrast

On white

5.97
#794FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#794FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794FAB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794FAB#FFFFFF#000000##FFFFFF
##794FAB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#3C63A9
Tritanopia (blue-blind)
#706075
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #794fab;
/* rgb */ color: rgb(121, 79, 171);
/* oklch */ color: oklch(51.7% 0.144 302.8);
Tailwind
colors: {
  custom: {
    50: '#a282c4',
    500: '#794fab',
    950: '#000000',
  },
}
SCSS
$custom: #794fab;
$custom-light: #a282c4;
$custom-dark: #000000;
JSON
{
  "hex": "#794fab",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 267.391,
    "s": 36.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.14401,
    "h": 302.8
  },
  "luminance": 0.12597
}

Semantic roles & 50–950 ramp

primary
#794FAB
secondary
#ADC195
accent
#CD5B99
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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