#791879#791879

#791879 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.170 H 328.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#791879
RGBrgb(121, 24, 121)
HSLhsl(300, 67%, 28%)
HSVhsv(300, 80%, 47%)
CMYKcmyk(0%, 80.2%, 0%, 52.5%)
CIE-LABlab(29.66, 51.64, -32.34)
CIE-LCHlch(29.66, 60.93, 327.94°)
OKLaboklab(41.62% 0.1442 -0.0897)
OKLCHoklch(41.62% 0.17 328.1)
XYZxyz(11.6628, 6.0996, 18.6485)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791879 #187918
analogous
#481879 #791879 #791848
triadic
#791879 #797918 #187979
tetradic
#791879 #794818 #187918 #184879
square
#791879 #794818 #187918 #184879
split-complementary
#791879 #487918 #187948
monochromatic
#1A051A #460E46 #791879 #AC22AC #D735D7

Accessibility & contrast

On white

9.46
#791879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#791879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791879
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791879#FFFFFF#000000##FFFFFF
##7918791.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#344A77
Tritanopia (blue-blind)
#7D2948
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #791879;
/* rgb */ color: rgb(121, 24, 121);
/* oklch */ color: oklch(41.6% 0.170 328.1);
Tailwind
colors: {
  custom: {
    50: '#a362a0',
    500: '#791879',
    950: '#000000',
  },
}
SCSS
$custom: #791879;
$custom-light: #a362a0;
$custom-dark: #000000;
JSON
{
  "hex": "#791879",
  "rgb": {
    "r": 121,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 300,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41619,
    "c": 0.16979,
    "h": 328.1
  },
  "luminance": 0.06099
}

Semantic roles & 50–950 ramp

primary
#791879
secondary
#3FAE3F
accent
#EA3E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #791879

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

Preview Lab → · Contrast checker → · Palette generator →

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