#793C8E#793C8E

#793C8E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 46.9% C 0.141 H 316.7°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#793C8E
RGBrgb(121, 60, 142)
HSLhsl(285, 41%, 40%)
HSVhsv(285, 58%, 56%)
CMYKcmyk(14.8%, 57.7%, 0%, 44.3%)
CIE-LABlab(36.46, 40.32, -34.60)
CIE-LCHlch(36.46, 53.13, 319.37°)
OKLaboklab(46.93% 0.1024 -0.0965)
OKLCHoklch(46.93% 0.141 316.7)
XYZxyz(14.3828, 9.2502, 26.6138)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793C8E #518E3C
analogous
#503C8E #793C8E #8E3C7A
triadic
#793C8E #8E793C #3C8E79
tetradic
#793C8E #8E503C #518E3C #3C7A8E
square
#793C8E #8E503C #518E3C #3C7A8E
split-complementary
#793C8E #7A8E3C #3C8E50
monochromatic
#301838 #542A63 #793C8E #9C52B6 #B57DC8

Accessibility & contrast

On white

7.37
#793C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#793C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793C8E
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793C8E#FFFFFF#000000##FFFFFF
##793C8E1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285291
Deuteranopia (green-blind)
#3E588C
Tritanopia (blue-blind)
#78495F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #793c8e;
/* rgb */ color: rgb(121, 60, 142);
/* oklch */ color: oklch(46.9% 0.141 316.7);
Tailwind
colors: {
  custom: {
    50: '#a275af',
    500: '#793c8e',
    950: '#000000',
  },
}
SCSS
$custom: #793c8e;
$custom-light: #a275af;
$custom-dark: #000000;
JSON
{
  "hex": "#793c8e",
  "rgb": {
    "r": 121,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 284.634,
    "s": 40.594,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46931,
    "c": 0.14073,
    "h": 316.7
  },
  "luminance": 0.0925
}

Semantic roles & 50–950 ramp

primary
#793C8E
secondary
#84B274
accent
#D05776
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #793C8E

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

Preview Lab → · Contrast checker → · Palette generator →

#793C8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva