#795178#795178

#795178 is a mid, moderate purple. Relative luminance 0.113; OKLCH L 49.3% C 0.078 H 327.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#795178
RGBrgb(121, 81, 120)
HSLhsl(302, 20%, 40%)
HSVhsv(302, 33%, 47%)
CMYKcmyk(0%, 33.1%, 0.8%, 52.5%)
CIE-LABlab(40.09, 23.64, -15.44)
CIE-LCHlch(40.09, 28.24, 326.85°)
OKLaboklab(49.29% 0.0657 -0.0418)
OKLCHoklch(49.29% 0.078 327.5)
XYZxyz(14.2175, 11.3064, 19.1991)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#795178 #517952
analogous
#665179 #795178 #795164
triadic
#795178 #787951 #517879
tetradic
#795178 #796651 #517952 #516479
square
#795178 #796651 #517952 #516479
split-complementary
#795178 #647951 #517966
monochromatic
#30202F #543854 #795178 #9C6B9B #B590B4

Accessibility & contrast

On white

6.44
#795178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#795178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #795178
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##795178#FFFFFF#000000##FFFFFF
##7951781.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5B79
Deuteranopia (green-blind)
#586077
Tritanopia (blue-blind)
#7C545F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #795178;
/* rgb */ color: rgb(121, 81, 120);
/* oklch */ color: oklch(49.3% 0.078 327.5);
Tailwind
colors: {
  custom: {
    50: '#a0829f',
    500: '#795178',
    950: '#000000',
  },
}
SCSS
$custom: #795178;
$custom-light: #a0829f;
$custom-dark: #000000;
JSON
{
  "hex": "#795178",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 301.5,
    "s": 19.802,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49294,
    "c": 0.07786,
    "h": 327.5
  },
  "luminance": 0.11306
}

Semantic roles & 50–950 ramp

primary
#795178
secondary
#84A285
accent
#BC6D6B
background
#F9F8F9
surface
#F2EFF2
border
#CCCACC
text
#0F0A0E
muted
#7E7C7E

Preview Lab

Preview with #795178

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

Preview Lab → · Contrast checker → · Palette generator →

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