#791874#791874

#791874 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.166 H 330.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#791874
RGBrgb(121, 24, 116)
HSLhsl(303, 67%, 28%)
HSVhsv(303, 80%, 47%)
CMYKcmyk(0%, 80.2%, 4.1%, 52.5%)
CIE-LABlab(29.36, 50.79, -29.64)
CIE-LCHlch(29.36, 58.81, 329.73°)
OKLaboklab(41.31% 0.1442 -0.0819)
OKLCHoklch(41.31% 0.166 330.4)
XYZxyz(11.3641, 5.9801, 17.0754)
Luminance0.0598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791874 #18791D
analogous
#4D1879 #791874 #791843
triadic
#791874 #747918 #187479
tetradic
#791874 #794D18 #18791D #184379
square
#791874 #794D18 #18791D #184379
split-complementary
#791874 #437918 #18794D
monochromatic
#1A0518 #460E43 #791874 #AC22A5 #D735CE

Accessibility & contrast

On white

9.56
#791874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#791874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791874
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791874#FFFFFF#000000##FFFFFF
##7918741.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3D76
Deuteranopia (green-blind)
#374A72
Tritanopia (blue-blind)
#7E2645
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #791874;
/* rgb */ color: rgb(121, 24, 116);
/* oklch */ color: oklch(41.3% 0.166 330.4);
Tailwind
colors: {
  custom: {
    50: '#a3629c',
    500: '#791874',
    950: '#000000',
  },
}
SCSS
$custom: #791874;
$custom-light: #a3629c;
$custom-dark: #000000;
JSON
{
  "hex": "#791874",
  "rgb": {
    "r": 121,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 303.093,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41308,
    "c": 0.16585,
    "h": 330.4
  },
  "luminance": 0.05979
}

Semantic roles & 50–950 ramp

primary
#791874
secondary
#3FAE45
accent
#EA473E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791874

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

Preview Lab → · Contrast checker → · Palette generator →

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