#794CA2#794CA2

#794CA2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.6% C 0.138 H 306.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#794CA2
RGBrgb(121, 76, 162)
HSLhsl(271, 36%, 47%)
HSVhsv(271, 53%, 64%)
CMYKcmyk(25.3%, 53.1%, 0%, 36.5%)
CIE-LABlab(40.96, 36.12, -39.52)
CIE-LCHlch(40.96, 53.54, 312.42°)
OKLaboklab(50.62% 0.0814 -0.111)
OKLCHoklch(50.62% 0.138 306.3)
XYZxyz(16.9898, 11.8426, 35.5662)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794CA2 #75A24C
analogous
#4E4CA2 #794CA2 #A24CA0
triadic
#794CA2 #A2794C #4CA279
tetradic
#794CA2 #A24E4C #75A24C #4CA0A2
square
#794CA2 #A24E4C #75A24C #4CA0A2
split-complementary
#794CA2 #A0A24C #4CA24E
monochromatic
#3B254F #5A3878 #794CA2 #9770BC #B599CF

Accessibility & contrast

On white

6.23
#794CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#794CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794CA2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794CA2#FFFFFF#000000##FFFFFF
##794CA21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#3F61A0
Tritanopia (blue-blind)
#735B70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #794ca2;
/* rgb */ color: rgb(121, 76, 162);
/* oklch */ color: oklch(50.6% 0.138 306.3);
Tailwind
colors: {
  custom: {
    50: '#a27fbe',
    500: '#794ca2',
    950: '#000000',
  },
}
SCSS
$custom: #794ca2;
$custom-light: #a27fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#794ca2",
  "rgb": {
    "r": 121,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 271.395,
    "s": 36.134,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50615,
    "c": 0.13765,
    "h": 306.3
  },
  "luminance": 0.11842
}

Semantic roles & 50–950 ramp

primary
#794CA2
secondary
#A4BC8E
accent
#CC5C91
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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