#792397#792397

#792397 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.184 H 315.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#792397
RGBrgb(121, 35, 151)
HSLhsl(284, 62%, 36%)
HSVhsv(284, 77%, 59%)
CMYKcmyk(19.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(32.92, 53.63, -45.76)
CIE-LCHlch(32.92, 70.50, 319.53°)
OKLaboklab(44.57% 0.1314 -0.129)
OKLCHoklch(44.57% 0.184 315.5)
XYZxyz(14.0712, 7.5019, 29.9790)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792397 #419723
analogous
#3F2397 #792397 #97237B
triadic
#792397 #977923 #239779
tetradic
#792397 #973F23 #419723 #237B97
square
#792397 #973F23 #419723 #237B97
split-complementary
#792397 #7B9723 #23973F
monochromatic
#290C34 #511765 #792397 #A12FC9 #B95BD9

Accessibility & contrast

On white

8.40
#792397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#792397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792397
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792397#FFFFFF#000000##FFFFFF
##7923971.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#205094
Tritanopia (blue-blind)
#773D5C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #792397;
/* rgb */ color: rgb(121, 35, 151);
/* oklch */ color: oklch(44.6% 0.184 315.5);
Tailwind
colors: {
  custom: {
    50: '#a468b6',
    500: '#792397',
    950: '#000000',
  },
}
SCSS
$custom: #792397;
$custom-light: #a468b6;
$custom-dark: #000000;
JSON
{
  "hex": "#792397",
  "rgb": {
    "r": 121,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 284.483,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44565,
    "c": 0.18418,
    "h": 315.5
  },
  "luminance": 0.07501
}

Semantic roles & 50–950 ramp

primary
#792397
secondary
#72BE58
accent
#E5426D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792397

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

Preview Lab → · Contrast checker → · Palette generator →

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