#792387#792387

#792387 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.170 H 321.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#792387
RGBrgb(121, 35, 135)
HSLhsl(292, 59%, 33%)
HSVhsv(292, 74%, 53%)
CMYKcmyk(10.4%, 74.1%, 0%, 47.1%)
CIE-LABlab(31.85, 50.45, -37.64)
CIE-LCHlch(31.85, 62.94, 323.28°)
OKLaboklab(43.46% 0.1331 -0.1052)
OKLCHoklch(43.46% 0.17 321.7)
XYZxyz(12.8589, 7.0170, 23.5941)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792387 #318723
analogous
#472387 #792387 #872363
triadic
#792387 #877923 #238779
tetradic
#792387 #874723 #318723 #236387
square
#792387 #874723 #318723 #236387
split-complementary
#792387 #638723 #238747
monochromatic
#220A26 #4D1656 #792387 #A530B8 #C052D2

Accessibility & contrast

On white

8.74
#792387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#792387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792387
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792387#FFFFFF#000000##FFFFFF
##7923871.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#7A3653
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #792387;
/* rgb */ color: rgb(121, 35, 135);
/* oklch */ color: oklch(43.5% 0.170 321.7);
Tailwind
colors: {
  custom: {
    50: '#a367aa',
    500: '#792387',
    950: '#000000',
  },
}
SCSS
$custom: #792387;
$custom-light: #a367aa;
$custom-dark: #000000;
JSON
{
  "hex": "#792387",
  "rgb": {
    "r": 121,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 291.6,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43456,
    "c": 0.1697,
    "h": 321.7
  },
  "luminance": 0.07016
}

Semantic roles & 50–950 ramp

primary
#792387
secondary
#5EB650
accent
#E2465C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #792387

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

Preview Lab → · Contrast checker → · Palette generator →

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