#794EA2#794EA2

#794EA2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 50.9% C 0.134 H 305.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#794EA2
RGBrgb(121, 78, 162)
HSLhsl(271, 35%, 47%)
HSVhsv(271, 52%, 64%)
CMYKcmyk(25.3%, 51.9%, 0%, 36.5%)
CIE-LABlab(41.41, 34.97, -38.82)
CIE-LCHlch(41.41, 52.25, 312.02°)
OKLaboklab(50.94% 0.0786 -0.1089)
OKLCHoklch(50.94% 0.134 305.8)
XYZxyz(17.1298, 12.1225, 35.6129)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794EA2 #77A24E
analogous
#4F4EA2 #794EA2 #A24EA1
triadic
#794EA2 #A2794E #4EA279
tetradic
#794EA2 #A24F4E #77A24E #4EA1A2
square
#794EA2 #A24F4E #77A24E #4EA1A2
split-complementary
#794EA2 #A1A24E #4EA24F
monochromatic
#3B264F #5A3A79 #794EA2 #9772BB #B69BCF

Accessibility & contrast

On white

6.13
#794EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#794EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794EA2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794EA2#FFFFFF#000000##FFFFFF
##794EA21.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A5
Deuteranopia (green-blind)
#4162A0
Tritanopia (blue-blind)
#725D70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #794ea2;
/* rgb */ color: rgb(121, 78, 162);
/* oklch */ color: oklch(50.9% 0.134 305.8);
Tailwind
colors: {
  custom: {
    50: '#a281be',
    500: '#794ea2',
    950: '#000000',
  },
}
SCSS
$custom: #794ea2;
$custom-light: #a281be;
$custom-dark: #000000;
JSON
{
  "hex": "#794ea2",
  "rgb": {
    "r": 121,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 270.714,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50945,
    "c": 0.13433,
    "h": 305.8
  },
  "luminance": 0.12122
}

Semantic roles & 50–950 ramp

primary
#794EA2
secondary
#A5BC90
accent
#CB5D93
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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