#793371#793371

#793371 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.0% C 0.127 H 332.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#793371
RGBrgb(121, 51, 113)
HSLhsl(307, 41%, 34%)
HSVhsv(307, 58%, 47%)
CMYKcmyk(0%, 57.9%, 6.6%, 52.5%)
CIE-LABlab(33.19, 39.15, -21.72)
CIE-LCHlch(33.19, 44.77, 330.97°)
OKLaboklab(44.03% 0.1119 -0.0593)
OKLCHoklch(44.03% 0.127 332.1)
XYZxyz(12.0496, 7.6257, 16.4568)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793371 #33793B
analogous
#5E3379 #793371 #79334E
triadic
#793371 #717933 #337179
tetradic
#793371 #795E33 #33793B #334E79
square
#793371 #795E33 #33793B #334E79
split-complementary
#793371 #4E7933 #33795E
monochromatic
#230F21 #4E2149 #793371 #A44599 #BF67B5

Accessibility & contrast

On white

8.32
#793371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#793371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793371
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793371#FFFFFF#000000##FFFFFF
##7933711.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#46526F
Tritanopia (blue-blind)
#7E384D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #793371;
/* rgb */ color: rgb(121, 51, 113);
/* oklch */ color: oklch(44.0% 0.127 332.1);
Tailwind
colors: {
  custom: {
    50: '#a26f9a',
    500: '#793371',
    950: '#000000',
  },
}
SCSS
$custom: #793371;
$custom-light: #a26f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#793371",
  "rgb": {
    "r": 121,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 306.857,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44032,
    "c": 0.12664,
    "h": 332.1
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

primary
#793371
secondary
#61A769
accent
#D16557
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #793371

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

Preview Lab → · Contrast checker → · Palette generator →

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