#794897#794897

#794897 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.3% C 0.131 H 311.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#794897
RGBrgb(121, 72, 151)
HSLhsl(277, 35%, 44%)
HSVhsv(277, 52%, 59%)
CMYKcmyk(19.9%, 52.3%, 0%, 40.8%)
CIE-LABlab(39.47, 35.76, -35.30)
CIE-LCHlch(39.47, 50.24, 315.37°)
OKLaboklab(49.31% 0.0861 -0.0986)
OKLCHoklch(49.31% 0.131 311.1)
XYZxyz(15.7874, 10.9344, 30.5510)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#794897 #669748
analogous
#514897 #794897 #97488D
triadic
#794897 #977948 #489779
tetradic
#794897 #975148 #669748 #488D97
square
#794897 #975148 #669748 #488D97
split-complementary
#794897 #8D9748 #489751
monochromatic
#372044 #58346E #794897 #9866B6 #B490CA

Accessibility & contrast

On white

6.59
#794897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#794897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #794897
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##794897#FFFFFF#000000##FFFFFF
##7948971.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9A
Deuteranopia (green-blind)
#435E95
Tritanopia (blue-blind)
#765568
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #794897;
/* rgb */ color: rgb(121, 72, 151);
/* oklch */ color: oklch(49.3% 0.131 311.1);
Tailwind
colors: {
  custom: {
    50: '#a27db6',
    500: '#794897',
    950: '#000000',
  },
}
SCSS
$custom: #794897;
$custom-light: #a27db6;
$custom-dark: #000000;
JSON
{
  "hex": "#794897",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 277.215,
    "s": 35.426,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49309,
    "c": 0.13092,
    "h": 311.1
  },
  "luminance": 0.10934
}

Semantic roles & 50–950 ramp

primary
#794897
secondary
#98B685
accent
#CB5C87
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #794897

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

Preview Lab → · Contrast checker → · Palette generator →

#794897 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva