#791872#791872

#791872 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.164 H 331.4°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#791872
RGBrgb(121, 24, 114)
HSLhsl(304, 67%, 28%)
HSVhsv(304, 80%, 47%)
CMYKcmyk(0%, 80.2%, 5.8%, 52.5%)
CIE-LABlab(29.25, 50.46, -28.55)
CIE-LCHlch(29.25, 57.98, 330.50°)
OKLaboklab(41.19% 0.1442 -0.0787)
OKLCHoklch(41.19% 0.164 331.4)
XYZxyz(11.2491, 5.9341, 16.4692)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791872 #18791F
analogous
#4F1879 #791872 #791841
triadic
#791872 #727918 #187279
tetradic
#791872 #794F18 #18791F #184179
square
#791872 #794F18 #18791F #184179
split-complementary
#791872 #417918 #18794F
monochromatic
#1A0518 #460E42 #791872 #AC22A2 #D735CB

Accessibility & contrast

On white

9.60
#791872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#791872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791872
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791872#FFFFFF#000000##FFFFFF
##7918721.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C74
Deuteranopia (green-blind)
#384A70
Tritanopia (blue-blind)
#7E2544
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #791872;
/* rgb */ color: rgb(121, 24, 114);
/* oklch */ color: oklch(41.2% 0.164 331.4);
Tailwind
colors: {
  custom: {
    50: '#a3629b',
    500: '#791872',
    950: '#000000',
  },
}
SCSS
$custom: #791872;
$custom-light: #a3629b;
$custom-dark: #000000;
JSON
{
  "hex": "#791872",
  "rgb": {
    "r": 121,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 304.33,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41187,
    "c": 0.1643,
    "h": 331.4
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#791872
secondary
#3FAE47
accent
#EA4A3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791872

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

Preview Lab → · Contrast checker → · Palette generator →

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