#794FB8#794FB8

#794FB8 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.5% C 0.160 H 299.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#794FB8
RGBrgb(121, 79, 184)
HSLhsl(264, 43%, 52%)
HSVhsv(264, 57%, 72%)
CMYKcmyk(34.2%, 57.1%, 0%, 27.8%)
CIE-LABlab(42.94, 39.99, -49.37)
CIE-LCHlch(42.94, 63.54, 309.01°)
OKLaboklab(52.5% 0.0784 -0.1398)
OKLCHoklch(52.5% 0.16 299.3)
XYZxyz(19.3308, 13.1174, 46.8516)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794FB8 #8EB84F
analogous
#4F5AB8 #794FB8 #AE4FB8
triadic
#794FB8 #B8794F #4FB879
tetradic
#794FB8 #B84F5A #8EB84F #4FB8AE
square
#794FB8 #B84F5A #8EB84F #4FB8AE
split-complementary
#794FB8 #B8AE4F #5AB84F
monochromatic
#402864 #5C3A90 #794FB8 #9A7BCA #BBA6DB

Accessibility & contrast

On white

5.80
#794FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#794FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794FB8
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794FB8#FFFFFF#000000##FFFFFF
##794FB81.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BB
Deuteranopia (green-blind)
#2F65B6
Tritanopia (blue-blind)
#6B647C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #794fb8;
/* rgb */ color: rgb(121, 79, 184);
/* oklch */ color: oklch(52.5% 0.160 299.3);
Tailwind
colors: {
  custom: {
    50: '#a382ce',
    500: '#794fb8',
    950: '#000000',
  },
}
SCSS
$custom: #794fb8;
$custom-light: #a382ce;
$custom-dark: #000000;
JSON
{
  "hex": "#794fb8",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 264,
    "s": 42.51,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52496,
    "c": 0.16031,
    "h": 299.3
  },
  "luminance": 0.13118
}

Semantic roles & 50–950 ramp

primary
#794FB8
secondary
#B6C89A
accent
#D256A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #794FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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