#792381#792381

#792381 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.164 H 324.2°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#792381
RGBrgb(121, 35, 129)
HSLhsl(295, 57%, 32%)
HSVhsv(295, 73%, 51%)
CMYKcmyk(6.2%, 72.9%, 0%, 49.4%)
CIE-LABlab(31.47, 49.31, -34.50)
CIE-LCHlch(31.47, 60.18, 325.02°)
OKLaboklab(43.07% 0.1334 -0.0961)
OKLCHoklch(43.07% 0.164 324.2)
XYZxyz(12.4483, 6.8528, 21.4317)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792381 #2B8123
analogous
#4A2381 #792381 #81235A
triadic
#792381 #817923 #238179
tetradic
#792381 #814A23 #2B8123 #235A81
square
#792381 #814A23 #2B8123 #235A81
split-complementary
#792381 #5A8123 #23814A
monochromatic
#1F0921 #4C1651 #792381 #A630B1 #C44FCF

Accessibility & contrast

On white

8.86
#792381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#792381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792381
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792381#FFFFFF#000000##FFFFFF
##7923811.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064384
Deuteranopia (green-blind)
#344E7F
Tritanopia (blue-blind)
#7B3350
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #792381;
/* rgb */ color: rgb(121, 35, 129);
/* oklch */ color: oklch(43.1% 0.164 324.2);
Tailwind
colors: {
  custom: {
    50: '#a367a6',
    500: '#792381',
    950: '#000000',
  },
}
SCSS
$custom: #792381;
$custom-light: #a367a6;
$custom-dark: #000000;
JSON
{
  "hex": "#792381",
  "rgb": {
    "r": 121,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 294.894,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43066,
    "c": 0.16439,
    "h": 324.2
  },
  "luminance": 0.06852
}

Semantic roles & 50–950 ramp

primary
#792381
secondary
#56B34D
accent
#E14754
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #792381

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

Preview Lab → · Contrast checker → · Palette generator →

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