#791878#791878

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

Color values

HEX#791878
RGBrgb(121, 24, 120)
HSLhsl(301, 67%, 28%)
HSVhsv(301, 80%, 47%)
CMYKcmyk(0%, 80.2%, 0.8%, 52.5%)
CIE-LABlab(29.60, 51.47, -31.80)
CIE-LCHlch(29.60, 60.50, 328.29°)
OKLaboklab(41.56% 0.1442 -0.0881)
OKLCHoklch(41.56% 0.169 328.6)
XYZxyz(11.6018, 6.0752, 18.3272)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791878 #187919
analogous
#491879 #791878 #791847
triadic
#791878 #787918 #187879
tetradic
#791878 #794918 #187919 #184779
square
#791878 #794918 #187919 #184779
split-complementary
#791878 #477918 #187949
monochromatic
#1A0519 #460E45 #791878 #AC22AB #D735D5

Accessibility & contrast

On white

9.48
#791878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#791878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791878
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791878#FFFFFF#000000##FFFFFF
##7918781.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013E7B
Deuteranopia (green-blind)
#354A76
Tritanopia (blue-blind)
#7D2848
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #791878;
/* rgb */ color: rgb(121, 24, 120);
/* oklch */ color: oklch(41.6% 0.169 328.6);
Tailwind
colors: {
  custom: {
    50: '#a3629f',
    500: '#791878',
    950: '#000000',
  },
}
SCSS
$custom: #791878;
$custom-light: #a3629f;
$custom-dark: #000000;
JSON
{
  "hex": "#791878",
  "rgb": {
    "r": 121,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 300.619,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41556,
    "c": 0.169,
    "h": 328.6
  },
  "luminance": 0.06074
}

Semantic roles & 50–950 ramp

primary
#791878
secondary
#3FAE40
accent
#EA403E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791878

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

Preview Lab → · Contrast checker → · Palette generator →

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