#791871#791871

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

Color values

HEX#791871
RGBrgb(121, 24, 113)
HSLhsl(305, 67%, 28%)
HSVhsv(305, 80%, 47%)
CMYKcmyk(0%, 80.2%, 6.6%, 52.5%)
CIE-LABlab(29.19, 50.30, -28.00)
CIE-LCHlch(29.19, 57.57, 330.89°)
OKLaboklab(41.13% 0.1442 -0.0771)
OKLCHoklch(41.13% 0.164 331.9)
XYZxyz(11.1925, 5.9114, 16.1711)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791871 #187920
analogous
#501879 #791871 #791840
triadic
#791871 #717918 #187179
tetradic
#791871 #795018 #187920 #184079
square
#791871 #795018 #187920 #184079
split-complementary
#791871 #407918 #187950
monochromatic
#1A0518 #460E41 #791871 #AC22A1 #D735C9

Accessibility & contrast

On white

9.62
#791871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#791871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791871
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791871#FFFFFF#000000##FFFFFF
##7918711.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C73
Deuteranopia (green-blind)
#39496F
Tritanopia (blue-blind)
#7E2444
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #791871;
/* rgb */ color: rgb(121, 24, 113);
/* oklch */ color: oklch(41.1% 0.164 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3629a',
    500: '#791871',
    950: '#000000',
  },
}
SCSS
$custom: #791871;
$custom-light: #a3629a;
$custom-dark: #000000;
JSON
{
  "hex": "#791871",
  "rgb": {
    "r": 121,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 304.948,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41127,
    "c": 0.16354,
    "h": 331.9
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#791871
secondary
#3FAE48
accent
#EA4C3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791871

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

Preview Lab → · Contrast checker → · Palette generator →

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