#793897#793897

#793897 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 46.9% C 0.157 H 313.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#793897
RGBrgb(121, 56, 151)
HSLhsl(281, 46%, 41%)
HSVhsv(281, 63%, 59%)
CMYKcmyk(19.9%, 62.9%, 0%, 40.8%)
CIE-LABlab(36.23, 44.38, -40.45)
CIE-LCHlch(36.23, 60.05, 317.65°)
OKLaboklab(46.93% 0.108 -0.1136)
OKLCHoklch(46.93% 0.157 313.5)
XYZxyz(14.8843, 9.1281, 30.2500)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793897 #569738
analogous
#493897 #793897 #973885
triadic
#793897 #977938 #389779
tetradic
#793897 #974938 #569738 #388597
square
#793897 #974938 #569738 #388597
split-complementary
#793897 #859738 #389749
monochromatic
#31173E #55276A #793897 #9B4FBE #B47BCE

Accessibility & contrast

On white

7.43
#793897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#793897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793897
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793897#FFFFFF#000000##FFFFFF
##7938971.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529A
Deuteranopia (green-blind)
#335795
Tritanopia (blue-blind)
#764962
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #793897;
/* rgb */ color: rgb(121, 56, 151);
/* oklch */ color: oklch(46.9% 0.157 313.5);
Tailwind
colors: {
  custom: {
    50: '#a373b6',
    500: '#793897',
    950: '#000000',
  },
}
SCSS
$custom: #793897;
$custom-light: #a373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#793897",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 281.053,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46934,
    "c": 0.15675,
    "h": 313.5
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#793897
secondary
#89B773
accent
#D6527C
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #793897

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

Preview Lab → · Contrast checker → · Palette generator →

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