#794FB1#794FB1

#794FB1 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.152 H 301.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#794FB1
RGBrgb(121, 79, 177)
HSLhsl(266, 39%, 50%)
HSVhsv(266, 55%, 69%)
CMYKcmyk(31.6%, 55.4%, 0%, 30.6%)
CIE-LABlab(42.51, 38.18, -45.95)
CIE-LCHlch(42.51, 59.74, 309.72°)
OKLaboklab(52.04% 0.0782 -0.1298)
OKLCHoklch(52.04% 0.152 301.1)
XYZxyz(18.6151, 12.8312, 43.0824)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794FB1 #87B14F
analogous
#4F56B1 #794FB1 #AA4FB1
triadic
#794FB1 #B1794F #4FB179
tetradic
#794FB1 #B14F56 #87B14F #4FB1AA
square
#794FB1 #B14F56 #87B14F #4FB1AA
split-complementary
#794FB1 #B1AA4F #56B14F
monochromatic
#3F295D #5C3C87 #794FB1 #9979C4 #BAA4D7

Accessibility & contrast

On white

5.89
#794FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#794FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794FB1
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794FB1#FFFFFF#000000##FFFFFF
##794FB11.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#6E6278
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #794fb1;
/* rgb */ color: rgb(121, 79, 177);
/* oklch */ color: oklch(52.0% 0.152 301.1);
Tailwind
colors: {
  custom: {
    50: '#a382c9',
    500: '#794fb1',
    950: '#000000',
  },
}
SCSS
$custom: #794fb1;
$custom-light: #a382c9;
$custom-dark: #000000;
JSON
{
  "hex": "#794fb1",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 265.714,
    "s": 38.583,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5204,
    "c": 0.15156,
    "h": 301.1
  },
  "luminance": 0.12831
}

Semantic roles & 50–950 ramp

primary
#794FB1
secondary
#B1C498
accent
#CF599C
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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