#793872#793872

#793872 is a dark, moderate purple. Relative luminance 0.081; OKLCH L 44.8% C 0.119 H 331.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#793872
RGBrgb(121, 56, 114)
HSLhsl(306, 37%, 35%)
HSVhsv(306, 54%, 47%)
CMYKcmyk(0%, 53.7%, 5.8%, 52.5%)
CIE-LABlab(34.21, 36.74, -20.77)
CIE-LCHlch(34.21, 42.20, 330.52°)
OKLaboklab(44.8% 0.1046 -0.0566)
OKLCHoklch(44.8% 0.119 331.6)
XYZxyz(12.3365, 8.1090, 16.8317)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793872 #38793F
analogous
#603879 #793872 #793851
triadic
#793872 #727938 #387279
tetradic
#793872 #796038 #38793F #385179
square
#793872 #796038 #38793F #385179
split-complementary
#793872 #517938 #387960
monochromatic
#251123 #4F254B #793872 #A34B99 #BC6FB4

Accessibility & contrast

On white

8.01
#793872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#793872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793872
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793872#FFFFFF#000000##FFFFFF
##7938721.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B74
Deuteranopia (green-blind)
#495470
Tritanopia (blue-blind)
#7E3D50
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #793872;
/* rgb */ color: rgb(121, 56, 114);
/* oklch */ color: oklch(44.8% 0.119 331.6);
Tailwind
colors: {
  custom: {
    50: '#a1729a',
    500: '#793872',
    950: '#000000',
  },
}
SCSS
$custom: #793872;
$custom-light: #a1729a;
$custom-dark: #000000;
JSON
{
  "hex": "#793872",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 114
  },
  "hsl": {
    "h": 306.462,
    "s": 36.723,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44798,
    "c": 0.11896,
    "h": 331.6
  },
  "luminance": 0.08108
}

Semantic roles & 50–950 ramp

primary
#793872
secondary
#67A56E
accent
#CD675B
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#0F080E
muted
#7F7B7E

Preview Lab

Preview with #793872

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

Preview Lab → · Contrast checker → · Palette generator →

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