#792871#792871

#792871 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.6% C 0.144 H 331.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#792871
RGBrgb(121, 40, 113)
HSLhsl(306, 50%, 32%)
HSVhsv(306, 67%, 47%)
CMYKcmyk(0%, 66.9%, 6.6%, 52.5%)
CIE-LABlab(31.29, 44.35, -24.69)
CIE-LCHlch(31.29, 50.76, 330.89°)
OKLaboklab(42.64% 0.1269 -0.0677)
OKLCHoklch(42.64% 0.144 331.9)
XYZxyz(11.6246, 6.7757, 16.3152)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792871 #287930
analogous
#592879 #792871 #792849
triadic
#792871 #717928 #287179
tetradic
#792871 #795928 #287930 #284979
square
#792871 #795928 #287930 #284979
split-complementary
#792871 #497928 #287959
monochromatic
#1D0A1B #4B1946 #792871 #A7379C #C755BB

Accessibility & contrast

On white

8.92
#792871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#792871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792871
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792871#FFFFFF#000000##FFFFFF
##7928711.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#7E3049
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #792871;
/* rgb */ color: rgb(121, 40, 113);
/* oklch */ color: oklch(42.6% 0.144 331.9);
Tailwind
colors: {
  custom: {
    50: '#a2699a',
    500: '#792871',
    950: '#000000',
  },
}
SCSS
$custom: #792871;
$custom-light: #a2699a;
$custom-dark: #000000;
JSON
{
  "hex": "#792871",
  "rgb": {
    "r": 121,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 305.926,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42643,
    "c": 0.14387,
    "h": 331.9
  },
  "luminance": 0.06775
}

Semantic roles & 50–950 ramp

primary
#792871
secondary
#52AB5B
accent
#DA5C4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #792871

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

Preview Lab → · Contrast checker → · Palette generator →

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