#794BB7#794BB7

#794BB7 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.8% C 0.165 H 300.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#794BB7
RGBrgb(121, 75, 183)
HSLhsl(266, 43%, 51%)
HSVhsv(266, 59%, 72%)
CMYKcmyk(33.9%, 59%, 0%, 28.2%)
CIE-LABlab(42.02, 41.97, -50.25)
CIE-LCHlch(42.02, 65.48, 309.87°)
OKLaboklab(51.81% 0.0834 -0.1424)
OKLCHoklch(51.81% 0.165 300.4)
XYZxyz(18.9464, 12.5159, 46.2082)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794BB7 #89B74B
analogous
#4B53B7 #794BB7 #AF4BB7
triadic
#794BB7 #B7794B #4BB779
tetradic
#794BB7 #B74B53 #89B74B #4BB7AF
square
#794BB7 #B74B53 #89B74B #4BB7AF
split-complementary
#794BB7 #B7AF4B #53B74B
monochromatic
#3F2761 #5C388D #794BB7 #9A77C8 #BAA2DA

Accessibility & contrast

On white

5.99
#794BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #794BB7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794BB7#FFFFFF#000000##FFFFFF
##794BB71.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1263BB
Deuteranopia (green-blind)
#2A62B5
Tritanopia (blue-blind)
#6C617A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #794bb7;
/* rgb */ color: rgb(121, 75, 183);
/* oklch */ color: oklch(51.8% 0.165 300.4);
Tailwind
colors: {
  custom: {
    50: '#a47fcd',
    500: '#794bb7',
    950: '#000000',
  },
}
SCSS
$custom: #794bb7;
$custom-light: #a47fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#794bb7",
  "rgb": {
    "r": 121,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 265.556,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51805,
    "c": 0.16506,
    "h": 300.4
  },
  "luminance": 0.12516
}

Semantic roles & 50–950 ramp

primary
#794BB7
secondary
#B2C797
accent
#D3559D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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