#794BA2#794BA2

#794BA2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.5% C 0.139 H 306.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#794BA2
RGBrgb(121, 75, 162)
HSLhsl(272, 37%, 46%)
HSVhsv(272, 54%, 64%)
CMYKcmyk(25.3%, 53.7%, 0%, 36.5%)
CIE-LABlab(40.74, 36.69, -39.87)
CIE-LCHlch(40.74, 54.18, 312.62°)
OKLaboklab(50.45% 0.0828 -0.112)
OKLCHoklch(50.45% 0.139 306.5)
XYZxyz(16.9215, 11.7059, 35.5434)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794BA2 #74A24B
analogous
#4E4BA2 #794BA2 #A24BA0
triadic
#794BA2 #A2794B #4BA279
tetradic
#794BA2 #A24E4B #74A24B #4BA0A2
square
#794BA2 #A24E4B #74A24B #4BA0A2
split-complementary
#794BA2 #A0A24B #4BA24E
monochromatic
#3B244E #5A3878 #794BA2 #976EBC #B598CF

Accessibility & contrast

On white

6.29
#794BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#794BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794BA2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794BA2#FFFFFF#000000##FFFFFF
##794BA21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305EA5
Deuteranopia (green-blind)
#3E60A0
Tritanopia (blue-blind)
#735B6F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #794ba2;
/* rgb */ color: rgb(121, 75, 162);
/* oklch */ color: oklch(50.5% 0.139 306.5);
Tailwind
colors: {
  custom: {
    50: '#a27fbe',
    500: '#794ba2',
    950: '#000000',
  },
}
SCSS
$custom: #794ba2;
$custom-light: #a27fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#794ba2",
  "rgb": {
    "r": 121,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 271.724,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50452,
    "c": 0.1393,
    "h": 306.5
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#794BA2
secondary
#A3BC8D
accent
#CD5B91
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #794BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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