#794DB7#794DB7

#794DB7 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.1% C 0.162 H 299.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#794DB7
RGBrgb(121, 77, 183)
HSLhsl(265, 42%, 51%)
HSVhsv(265, 58%, 72%)
CMYKcmyk(33.9%, 57.9%, 0%, 28.2%)
CIE-LABlab(42.45, 40.86, -49.58)
CIE-LCHlch(42.45, 64.24, 309.49°)
OKLaboklab(52.12% 0.0809 -0.1404)
OKLCHoklch(52.12% 0.162 299.9)
XYZxyz(19.0842, 12.7915, 46.2541)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794DB7 #8BB74D
analogous
#4D56B7 #794DB7 #AE4DB7
triadic
#794DB7 #B7794D #4DB779
tetradic
#794DB7 #B74D56 #8BB74D #4DB7AE
square
#794DB7 #B74D56 #8BB74D #4DB7AE
split-complementary
#794DB7 #B7AE4D #56B74D
monochromatic
#402862 #5C398E #794DB7 #9A79C9 #BBA4DA

Accessibility & contrast

On white

5.90
#794DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#794DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794DB7
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794DB7#FFFFFF#000000##FFFFFF
##794DB71.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A64BA
Deuteranopia (green-blind)
#2D63B5
Tritanopia (blue-blind)
#6C637A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #794db7;
/* rgb */ color: rgb(121, 77, 183);
/* oklch */ color: oklch(52.1% 0.162 299.9);
Tailwind
colors: {
  custom: {
    50: '#a380cd',
    500: '#794db7',
    950: '#000000',
  },
}
SCSS
$custom: #794db7;
$custom-light: #a380cd;
$custom-dark: #000000;
JSON
{
  "hex": "#794db7",
  "rgb": {
    "r": 121,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 264.906,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52115,
    "c": 0.16208,
    "h": 299.9
  },
  "luminance": 0.12792
}

Semantic roles & 50–950 ramp

primary
#794DB7
secondary
#B4C798
accent
#D2569E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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