#794DB4#794DB4

#794DB4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.158 H 300.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#794DB4
RGBrgb(121, 77, 180)
HSLhsl(266, 41%, 50%)
HSVhsv(266, 57%, 71%)
CMYKcmyk(32.8%, 57.2%, 0%, 29.4%)
CIE-LABlab(42.26, 40.08, -48.12)
CIE-LCHlch(42.26, 62.62, 309.79°)
OKLaboklab(51.92% 0.0809 -0.1361)
OKLCHoklch(51.92% 0.158 300.7)
XYZxyz(18.7753, 12.6679, 44.6272)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794DB4 #88B44D
analogous
#4D55B4 #794DB4 #AC4DB4
triadic
#794DB4 #B4794D #4DB479
tetradic
#794DB4 #B44D55 #88B44D #4DB4AC
square
#794DB4 #B44D55 #88B44D #4DB4AC
split-complementary
#794DB4 #B4AC4D #55B44D
monochromatic
#3F285F #5C3A8A #794DB4 #9978C6 #BAA3D8

Accessibility & contrast

On white

5.94
#794DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #794DB4
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794DB4#FFFFFF#000000##FFFFFF
##794DB41.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B7
Deuteranopia (green-blind)
#3063B2
Tritanopia (blue-blind)
#6D6279
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #794db4;
/* rgb */ color: rgb(121, 77, 180);
/* oklch */ color: oklch(51.9% 0.158 300.7);
Tailwind
colors: {
  custom: {
    50: '#a380cb',
    500: '#794db4',
    950: '#000000',
  },
}
SCSS
$custom: #794db4;
$custom-light: #a380cb;
$custom-dark: #000000;
JSON
{
  "hex": "#794db4",
  "rgb": {
    "r": 121,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 265.631,
    "s": 40.711,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51916,
    "c": 0.15837,
    "h": 300.7
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#794DB4
secondary
#B2C597
accent
#D1579D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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