#793399#793399

#793399 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.166 H 313.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#793399
RGBrgb(121, 51, 153)
HSLhsl(281, 50%, 40%)
HSVhsv(281, 67%, 60%)
CMYKcmyk(20.9%, 66.7%, 0%, 40%)
CIE-LABlab(35.46, 47.27, -42.89)
CIE-LCHlch(35.46, 63.83, 317.78°)
OKLaboklab(46.42% 0.1141 -0.1207)
OKLCHoklch(46.42% 0.166 313.4)
XYZxyz(14.8178, 8.7329, 31.0359)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793399 #539933
analogous
#463399 #793399 #993386
triadic
#793399 #997933 #339979
tetradic
#793399 #994633 #539933 #338699
square
#793399 #994633 #539933 #338699
split-complementary
#793399 #869933 #339946
monochromatic
#30143D #55246B #793399 #9B47C2 #B475D1

Accessibility & contrast

On white

7.65
#793399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#793399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793399
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793399#FFFFFF#000000##FFFFFF
##7933991.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#764761
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #793399;
/* rgb */ color: rgb(121, 51, 153);
/* oklch */ color: oklch(46.4% 0.166 313.4);
Tailwind
colors: {
  custom: {
    50: '#a370b8',
    500: '#793399',
    950: '#000000',
  },
}
SCSS
$custom: #793399;
$custom-light: #a370b8;
$custom-dark: #000000;
JSON
{
  "hex": "#793399",
  "rgb": {
    "r": 121,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 281.176,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.46422,
    "c": 0.16613,
    "h": 313.4
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#793399
secondary
#86B96E
accent
#DA4E7A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #793399

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

Preview Lab → · Contrast checker → · Palette generator →

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