#792797#792797

#792797 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.180 H 315.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#792797
RGBrgb(121, 39, 151)
HSLhsl(284, 59%, 37%)
HSVhsv(284, 74%, 59%)
CMYKcmyk(19.9%, 74.2%, 0%, 40.8%)
CIE-LABlab(33.46, 52.10, -44.90)
CIE-LCHlch(33.46, 68.78, 319.25°)
OKLaboklab(44.94% 0.1276 -0.1265)
OKLCHoklch(44.94% 0.18 315.2)
XYZxyz(14.1957, 7.7509, 30.0204)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792797 #459727
analogous
#412797 #792797 #97277D
triadic
#792797 #977927 #279779
tetradic
#792797 #974127 #459727 #277D97
square
#792797 #974127 #459727 #277D97
split-complementary
#792797 #7D9727 #279741
monochromatic
#2B0E36 #521A66 #792797 #A034C8 #B762D6

Accessibility & contrast

On white

8.24
#792797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#792797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792797
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792797#FFFFFF#000000##FFFFFF
##7927971.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#235195
Tritanopia (blue-blind)
#773F5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #792797;
/* rgb */ color: rgb(121, 39, 151);
/* oklch */ color: oklch(44.9% 0.180 315.2);
Tailwind
colors: {
  custom: {
    50: '#a36ab6',
    500: '#792797',
    950: '#000000',
  },
}
SCSS
$custom: #792797;
$custom-light: #a36ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#792797",
  "rgb": {
    "r": 121,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 283.929,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44944,
    "c": 0.17967,
    "h": 315.2
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#792797
secondary
#77BC5E
accent
#E24670
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792797

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

Preview Lab → · Contrast checker → · Palette generator →

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