#793397#793397

#793397 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.3% C 0.164 H 314.1°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#793397
RGBrgb(121, 51, 151)
HSLhsl(282, 50%, 40%)
HSVhsv(282, 66%, 59%)
CMYKcmyk(19.9%, 66.2%, 0%, 40.8%)
CIE-LABlab(35.34, 46.83, -41.88)
CIE-LCHlch(35.34, 62.83, 318.19°)
OKLaboklab(46.29% 0.1142 -0.1178)
OKLCHoklch(46.29% 0.164 314.1)
XYZxyz(14.6540, 8.6674, 30.1732)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793397 #519733
analogous
#473397 #793397 #973383
triadic
#793397 #977933 #339779
tetradic
#793397 #974733 #519733 #338397
square
#793397 #974733 #519733 #338397
split-complementary
#793397 #839733 #339747
monochromatic
#30143C #542469 #793397 #9C47C1 #B574D0

Accessibility & contrast

On white

7.68
#793397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#793397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793397
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793397#FFFFFF#000000##FFFFFF
##7933971.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024F9A
Deuteranopia (green-blind)
#2F5595
Tritanopia (blue-blind)
#764660
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #793397;
/* rgb */ color: rgb(121, 51, 151);
/* oklch */ color: oklch(46.3% 0.164 314.1);
Tailwind
colors: {
  custom: {
    50: '#a370b6',
    500: '#793397',
    950: '#000000',
  },
}
SCSS
$custom: #793397;
$custom-light: #a370b6;
$custom-dark: #000000;
JSON
{
  "hex": "#793397",
  "rgb": {
    "r": 121,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 282,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46288,
    "c": 0.16405,
    "h": 314.1
  },
  "luminance": 0.08667
}

Semantic roles & 50–950 ramp

primary
#793397
secondary
#84B86D
accent
#D94F78
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #793397

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

Preview Lab → · Contrast checker → · Palette generator →

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