#796188#796188

#796188 is a mid, moderate violet. Relative luminance 0.144; OKLCH L 53.1% C 0.066 H 312.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#796188
RGBrgb(121, 97, 136)
HSLhsl(277, 17%, 46%)
HSVhsv(277, 29%, 53%)
CMYKcmyk(11%, 28.7%, 0%, 46.7%)
CIE-LABlab(44.79, 17.48, -17.97)
CIE-LCHlch(44.79, 25.07, 314.20°)
OKLaboklab(53.09% 0.0443 -0.0491)
OKLCHoklch(53.09% 0.066 312.1)
XYZxyz(16.6030, 14.3921, 25.1911)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796188 #708861
analogous
#656188 #796188 #886183
triadic
#796188 #887961 #618879
tetradic
#796188 #886561 #708861 #618388
square
#796188 #886561 #708861 #618388
split-complementary
#796188 #838861 #618865
monochromatic
#392E41 #594864 #796188 #9781A5 #B5A5BF

Accessibility & contrast

On white

5.41
#796188 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#796188 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796188
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796188#FFFFFF#000000##FFFFFF
##7961881.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B698A
Deuteranopia (green-blind)
#606B87
Tritanopia (blue-blind)
#78666F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796188;
/* rgb */ color: rgb(121, 97, 136);
/* oklch */ color: oklch(53.1% 0.066 312.1);
Tailwind
colors: {
  custom: {
    50: '#a08eaa',
    500: '#796188',
    950: '#000000',
  },
}
SCSS
$custom: #796188;
$custom-light: #a08eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#796188",
  "rgb": {
    "r": 121,
    "g": 97,
    "b": 136
  },
  "hsl": {
    "h": 276.923,
    "s": 16.738,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53089,
    "c": 0.06608,
    "h": 312.1
  },
  "luminance": 0.14392
}

Semantic roles & 50–950 ramp

primary
#796188
secondary
#A0AD98
accent
#B96E8B
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0C10
muted
#7E7D7F

Preview Lab

Preview with #796188

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

Preview Lab → · Contrast checker → · Palette generator →

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