#792371#792371

#792371 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.1% C 0.151 H 331.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#792371
RGBrgb(121, 35, 113)
HSLhsl(306, 55%, 31%)
HSVhsv(306, 71%, 47%)
CMYKcmyk(0%, 71.1%, 6.6%, 52.5%)
CIE-LABlab(30.55, 46.44, -25.86)
CIE-LCHlch(30.55, 53.15, 330.88°)
OKLaboklab(42.1% 0.133 -0.071)
OKLCHoklch(42.1% 0.151 331.9)
XYZxyz(11.4668, 6.4602, 16.2626)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792371 #23792B
analogous
#562379 #792371 #792346
triadic
#792371 #717923 #237179
tetradic
#792371 #795623 #23792B #234679
square
#792371 #795623 #23792B #234679
split-complementary
#792371 #467923 #237956
monochromatic
#1A0818 #4A1545 #792371 #A8319D #CB4BBF

Accessibility & contrast

On white

9.16
#792371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#792371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792371
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792371#FFFFFF#000000##FFFFFF
##7923711.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#7E2C47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #792371;
/* rgb */ color: rgb(121, 35, 113);
/* oklch */ color: oklch(42.1% 0.151 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3669a',
    500: '#792371',
    950: '#000000',
  },
}
SCSS
$custom: #792371;
$custom-light: #a3669a;
$custom-dark: #000000;
JSON
{
  "hex": "#792371",
  "rgb": {
    "r": 121,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 305.581,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42103,
    "c": 0.15077,
    "h": 331.9
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#792371
secondary
#4CAC55
accent
#DE5749
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792371

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

Preview Lab → · Contrast checker → · Palette generator →

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