#794DB3#794DB3

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

Color values

HEX#794DB3
RGBrgb(121, 77, 179)
HSLhsl(266, 40%, 50%)
HSVhsv(266, 57%, 70%)
CMYKcmyk(32.4%, 57%, 0%, 29.8%)
CIE-LABlab(42.20, 39.83, -47.63)
CIE-LCHlch(42.20, 62.08, 309.90°)
OKLaboklab(51.85% 0.0809 -0.1347)
OKLCHoklch(51.85% 0.157 301)
XYZxyz(18.6738, 12.6273, 44.0926)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794DB3 #87B34D
analogous
#4D54B3 #794DB3 #AC4DB3
triadic
#794DB3 #B3794D #4DB379
tetradic
#794DB3 #B34D54 #87B34D #4DB3AC
square
#794DB3 #B34D54 #87B34D #4DB3AC
split-complementary
#794DB3 #B3AC4D #54B34D
monochromatic
#3F285E #5C3A89 #794DB3 #9978C5 #BAA3D8

Accessibility & contrast

On white

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

On black

3.53
#794DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##794DB3#FFFFFF#000000##FFFFFF
##794DB31.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B6
Deuteranopia (green-blind)
#3263B1
Tritanopia (blue-blind)
#6D6178
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #794db3;
/* rgb */ color: rgb(121, 77, 179);
/* oklch */ color: oklch(51.8% 0.157 301.0);
Tailwind
colors: {
  custom: {
    50: '#a380ca',
    500: '#794db3',
    950: '#000000',
  },
}
SCSS
$custom: #794db3;
$custom-light: #a380ca;
$custom-dark: #000000;
JSON
{
  "hex": "#794db3",
  "rgb": {
    "r": 121,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 265.882,
    "s": 40.157,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5185,
    "c": 0.15713,
    "h": 301
  },
  "luminance": 0.12627
}

Semantic roles & 50–950 ramp

primary
#794DB3
secondary
#B1C597
accent
#D0589C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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