#793786#793786

#793786 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.7% C 0.140 H 320.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#793786
RGBrgb(121, 55, 134)
HSLhsl(290, 42%, 37%)
HSVhsv(290, 59%, 53%)
CMYKcmyk(9.7%, 59%, 0%, 47.5%)
CIE-LABlab(35.04, 41.22, -31.93)
CIE-LCHlch(35.04, 52.14, 322.23°)
OKLaboklab(45.75% 0.1088 -0.0887)
OKLCHoklch(45.75% 0.14 320.8)
XYZxyz(13.5539, 8.5192, 23.4801)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793786 #448637
analogous
#523786 #793786 #86376B
triadic
#793786 #867937 #378679
tetradic
#793786 #865237 #448637 #376B86
square
#793786 #865237 #448637 #376B86
split-complementary
#793786 #6B8637 #378652
monochromatic
#2B132F #52255B #793786 #A049B1 #B872C5

Accessibility & contrast

On white

7.77
#793786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#793786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793786
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793786#FFFFFF#000000##FFFFFF
##7937861.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E89
Deuteranopia (green-blind)
#3E5584
Tritanopia (blue-blind)
#7A4359
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #793786;
/* rgb */ color: rgb(121, 55, 134);
/* oklch */ color: oklch(45.7% 0.140 320.8);
Tailwind
colors: {
  custom: {
    50: '#a272a9',
    500: '#793786',
    950: '#000000',
  },
}
SCSS
$custom: #793786;
$custom-light: #a272a9;
$custom-dark: #000000;
JSON
{
  "hex": "#793786",
  "rgb": {
    "r": 121,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 290.127,
    "s": 41.799,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45746,
    "c": 0.14039,
    "h": 320.8
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#793786
secondary
#76AE6B
accent
#D2566A
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #793786

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

Preview Lab → · Contrast checker → · Palette generator →

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