#794FA8#794FA8

#794FA8 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.5% C 0.140 H 303.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#794FA8
RGBrgb(121, 79, 168)
HSLhsl(268, 36%, 48%)
HSVhsv(268, 53%, 66%)
CMYKcmyk(28%, 53%, 0%, 34.1%)
CIE-LABlab(41.98, 35.89, -41.48)
CIE-LCHlch(41.98, 54.85, 310.86°)
OKLaboklab(51.47% 0.0777 -0.1167)
OKLCHoklch(51.47% 0.14 303.7)
XYZxyz(17.7475, 12.4841, 38.5129)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794FA8 #7EA84F
analogous
#4F51A8 #794FA8 #A54FA8
triadic
#794FA8 #A8794F #4FA879
tetradic
#794FA8 #A84F51 #7EA84F #4FA8A5
square
#794FA8 #A84F51 #7EA84F #4FA8A5
split-complementary
#794FA8 #A8A54F #51A84F
monochromatic
#3D2855 #5B3B7E #794FA8 #9876BE #B79FD2

Accessibility & contrast

On white

6.01
#794FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#794FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794FA8
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794FA8#FFFFFF#000000##FFFFFF
##794FA81.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#3E63A6
Tritanopia (blue-blind)
#715F74
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #794fa8;
/* rgb */ color: rgb(121, 79, 168);
/* oklch */ color: oklch(51.5% 0.140 303.7);
Tailwind
colors: {
  custom: {
    50: '#a282c2',
    500: '#794fa8',
    950: '#000000',
  },
}
SCSS
$custom: #794fa8;
$custom-light: #a282c2;
$custom-dark: #000000;
JSON
{
  "hex": "#794fa8",
  "rgb": {
    "r": 121,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 268.315,
    "s": 36.032,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51474,
    "c": 0.14023,
    "h": 303.7
  },
  "luminance": 0.12484
}

Semantic roles & 50–950 ramp

primary
#794FA8
secondary
#ABBF94
accent
#CC5C97
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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