#794BB5#794BB5

#794BB5 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.7% C 0.163 H 300.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#794BB5
RGBrgb(121, 75, 181)
HSLhsl(266, 42%, 50%)
HSVhsv(266, 59%, 71%)
CMYKcmyk(33.1%, 58.6%, 0%, 29%)
CIE-LABlab(41.90, 41.46, -49.29)
CIE-LCHlch(41.90, 64.40, 310.07°)
OKLaboklab(51.67% 0.0834 -0.1396)
OKLCHoklch(51.67% 0.163 300.9)
XYZxyz(18.7397, 12.4332, 45.1197)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794BB5 #87B54B
analogous
#4B52B5 #794BB5 #AE4BB5
triadic
#794BB5 #B5794B #4BB579
tetradic
#794BB5 #B54B52 #87B54B #4BB5AE
square
#794BB5 #B54B52 #87B54B #4BB5AE
split-complementary
#794BB5 #B5AE4B #52B54B
monochromatic
#3F275F #5C398A #794BB5 #9976C7 #BAA2D9

Accessibility & contrast

On white

6.02
#794BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#794BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794BB5
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794BB5#FFFFFF#000000##FFFFFF
##794BB51.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1762B8
Deuteranopia (green-blind)
#2C62B3
Tritanopia (blue-blind)
#6D6179
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #794bb5;
/* rgb */ color: rgb(121, 75, 181);
/* oklch */ color: oklch(51.7% 0.163 300.9);
Tailwind
colors: {
  custom: {
    50: '#a37fcc',
    500: '#794bb5',
    950: '#000000',
  },
}
SCSS
$custom: #794bb5;
$custom-light: #a37fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#794bb5",
  "rgb": {
    "r": 121,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 266.038,
    "s": 41.732,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5167,
    "c": 0.16262,
    "h": 300.9
  },
  "luminance": 0.12433
}

Semantic roles & 50–950 ramp

primary
#794BB5
secondary
#B1C696
accent
#D2569C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #794BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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