#792591#792591

#792591 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.176 H 317.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#792591
RGBrgb(121, 37, 145)
HSLhsl(287, 59%, 36%)
HSVhsv(287, 74%, 57%)
CMYKcmyk(16.6%, 74.5%, 0%, 43.1%)
CIE-LABlab(32.77, 51.65, -42.33)
CIE-LCHlch(32.77, 66.78, 320.67°)
OKLaboklab(44.33% 0.1303 -0.119)
OKLCHoklch(44.33% 0.176 317.6)
XYZxyz(13.6568, 7.4330, 27.4979)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792591 #3D9125
analogous
#432591 #792591 #912573
triadic
#792591 #917925 #259179
tetradic
#792591 #914325 #3D9125 #257391
square
#792591 #914325 #3D9125 #257391
split-complementary
#792591 #739125 #259143
monochromatic
#280C2F #501960 #792591 #A231C2 #BA5BD5

Accessibility & contrast

On white

8.45
#792591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#792591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792591
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792591#FFFFFF#000000##FFFFFF
##7925911.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#28508F
Tritanopia (blue-blind)
#783B59
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #792591;
/* rgb */ color: rgb(121, 37, 145);
/* oklch */ color: oklch(44.3% 0.176 317.6);
Tailwind
colors: {
  custom: {
    50: '#a368b2',
    500: '#792591',
    950: '#000000',
  },
}
SCSS
$custom: #792591;
$custom-light: #a368b2;
$custom-dark: #000000;
JSON
{
  "hex": "#792591",
  "rgb": {
    "r": 121,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 286.667,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44327,
    "c": 0.17641,
    "h": 317.6
  },
  "luminance": 0.07432
}

Semantic roles & 50–950 ramp

primary
#792591
secondary
#6EBA58
accent
#E34568
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792591

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

Preview Lab → · Contrast checker → · Palette generator →

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