#793387#793387

#793387 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.3% C 0.148 H 320.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#793387
RGBrgb(121, 51, 135)
HSLhsl(290, 45%, 36%)
HSVhsv(290, 62%, 53%)
CMYKcmyk(10.4%, 62.2%, 0%, 47.1%)
CIE-LABlab(34.36, 43.43, -33.63)
CIE-LCHlch(34.36, 54.93, 322.25°)
OKLaboklab(45.27% 0.1142 -0.0937)
OKLCHoklch(45.27% 0.148 320.7)
XYZxyz(13.4416, 8.1825, 23.7883)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793387 #418733
analogous
#4F3387 #793387 #87336B
triadic
#793387 #877933 #338779
tetradic
#793387 #874F33 #418733 #336B87
square
#793387 #874F33 #418733 #336B87
split-complementary
#793387 #6B8733 #33874F
monochromatic
#29112E #51225B #793387 #A144B3 #B96DC8

Accessibility & contrast

On white

7.97
#793387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#793387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793387
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793387#FFFFFF#000000##FFFFFF
##7933871.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C8A
Deuteranopia (green-blind)
#3B5385
Tritanopia (blue-blind)
#7A4058
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #793387;
/* rgb */ color: rgb(121, 51, 135);
/* oklch */ color: oklch(45.3% 0.148 320.7);
Tailwind
colors: {
  custom: {
    50: '#a26faa',
    500: '#793387',
    950: '#000000',
  },
}
SCSS
$custom: #793387;
$custom-light: #a26faa;
$custom-dark: #000000;
JSON
{
  "hex": "#793387",
  "rgb": {
    "r": 121,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 290,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45267,
    "c": 0.14773,
    "h": 320.7
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#793387
secondary
#72B066
accent
#D55369
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #793387

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

Preview Lab → · Contrast checker → · Palette generator →

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