#794BB8#794BB8

#794BB8 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.166 H 300.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#794BB8
RGBrgb(121, 75, 184)
HSLhsl(265, 43%, 51%)
HSVhsv(265, 59%, 72%)
CMYKcmyk(34.2%, 59.2%, 0%, 27.8%)
CIE-LABlab(42.09, 42.23, -50.74)
CIE-LCHlch(42.09, 66.01, 309.77°)
OKLaboklab(51.87% 0.0834 -0.1438)
OKLCHoklch(51.87% 0.166 300.1)
XYZxyz(19.0509, 12.5577, 46.7583)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794BB8 #8AB84B
analogous
#4B53B8 #794BB8 #AF4BB8
triadic
#794BB8 #B8794B #4BB879
tetradic
#794BB8 #B84B53 #8AB84B #4BB8AF
square
#794BB8 #B84B53 #8AB84B #4BB8AF
split-complementary
#794BB8 #B8AF4B #53B84B
monochromatic
#402762 #5C388E #794BB8 #9A77C9 #BAA3DB

Accessibility & contrast

On white

5.98
#794BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#794BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794BB8
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794BB8#FFFFFF#000000##FFFFFF
##794BB81.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1063BC
Deuteranopia (green-blind)
#2863B6
Tritanopia (blue-blind)
#6C627A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #794bb8;
/* rgb */ color: rgb(121, 75, 184);
/* oklch */ color: oklch(51.9% 0.166 300.1);
Tailwind
colors: {
  custom: {
    50: '#a47fce',
    500: '#794bb8',
    950: '#000000',
  },
}
SCSS
$custom: #794bb8;
$custom-light: #a47fce;
$custom-dark: #000000;
JSON
{
  "hex": "#794bb8",
  "rgb": {
    "r": 121,
    "g": 75,
    "b": 184
  },
  "hsl": {
    "h": 265.321,
    "s": 43.426,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51873,
    "c": 0.16627,
    "h": 300.1
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#794BB8
secondary
#B3C897
accent
#D3559E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #794BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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