#794FA2#794FA2

#794FA2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.1% C 0.133 H 305.6°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#794FA2
RGBrgb(121, 79, 162)
HSLhsl(270, 34%, 47%)
HSVhsv(270, 51%, 64%)
CMYKcmyk(25.3%, 51.2%, 0%, 36.5%)
CIE-LABlab(41.64, 34.39, -38.46)
CIE-LCHlch(41.64, 51.59, 311.81°)
OKLaboklab(51.11% 0.0772 -0.1079)
OKLCHoklch(51.11% 0.133 305.6)
XYZxyz(17.2014, 12.2657, 35.6367)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794FA2 #78A24F
analogous
#4F4FA2 #794FA2 #A24FA2
triadic
#794FA2 #A2794F #4FA279
tetradic
#794FA2 #A24F4F #78A24F #4FA2A2
square
#794FA2 #A24F4F #78A24F #4FA2A2
split-complementary
#794FA2 #A2A24F #4FA24F
monochromatic
#3C2750 #5A3B79 #794FA2 #9873BB #B69CCF

Accessibility & contrast

On white

6.08
#794FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#794FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794FA2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794FA2#FFFFFF#000000##FFFFFF
##794FA21.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#725E71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #794fa2;
/* rgb */ color: rgb(121, 79, 162);
/* oklch */ color: oklch(51.1% 0.133 305.6);
Tailwind
colors: {
  custom: {
    50: '#a281be',
    500: '#794fa2',
    950: '#000000',
  },
}
SCSS
$custom: #794fa2;
$custom-light: #a281be;
$custom-dark: #000000;
JSON
{
  "hex": "#794fa2",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 270.361,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.13266,
    "h": 305.6
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

primary
#794FA2
secondary
#A6BC91
accent
#CB5D93
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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