#794CB6#794CB6

#794CB6 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.162 H 300.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#794CB6
RGBrgb(121, 76, 182)
HSLhsl(265, 42%, 51%)
HSVhsv(265, 58%, 71%)
CMYKcmyk(33.5%, 58.2%, 0%, 28.6%)
CIE-LABlab(42.17, 41.16, -49.43)
CIE-LCHlch(42.17, 64.32, 309.78°)
OKLaboklab(51.89% 0.0822 -0.14)
OKLCHoklch(51.89% 0.162 300.4)
XYZxyz(18.9111, 12.6111, 45.6848)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794CB6 #89B64C
analogous
#4C54B6 #794CB6 #AE4CB6
triadic
#794CB6 #B6794C #4CB679
tetradic
#794CB6 #B64C54 #89B64C #4CB6AE
square
#794CB6 #B64C54 #89B64C #4CB6AE
split-complementary
#794CB6 #B6AE4C #54B64C
monochromatic
#3F2760 #5C398C #794CB6 #9A77C8 #BAA3D9

Accessibility & contrast

On white

5.96
#794CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #794CB6
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794CB6#FFFFFF#000000##FFFFFF
##794CB61.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1863B9
Deuteranopia (green-blind)
#2D63B4
Tritanopia (blue-blind)
#6C627A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #794cb6;
/* rgb */ color: rgb(121, 76, 182);
/* oklch */ color: oklch(51.9% 0.162 300.4);
Tailwind
colors: {
  custom: {
    50: '#a380cc',
    500: '#794cb6',
    950: '#000000',
  },
}
SCSS
$custom: #794cb6;
$custom-light: #a380cc;
$custom-dark: #000000;
JSON
{
  "hex": "#794cb6",
  "rgb": {
    "r": 121,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 265.472,
    "s": 42.063,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51892,
    "c": 0.16234,
    "h": 300.4
  },
  "luminance": 0.12611
}

Semantic roles & 50–950 ramp

primary
#794CB6
secondary
#B2C697
accent
#D2569D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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