#797186#797186

#797186 is a mid, muted violet. Relative luminance 0.176; OKLCH L 56.3% C 0.033 H 302.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#797186
RGBrgb(121, 113, 134)
HSLhsl(263, 9%, 48%)
HSVhsv(263, 16%, 53%)
CMYKcmyk(9.7%, 15.7%, 0%, 47.5%)
CIE-LABlab(49.00, 7.44, -10.38)
CIE-LCHlch(49.00, 12.77, 305.62°)
OKLaboklab(56.32% 0.018 -0.028)
OKLCHoklch(56.32% 0.033 302.7)
XYZxyz(18.0926, 17.5964, 24.9929)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797186 #7E8671
analogous
#717386 #797186 #837186
triadic
#797186 #867971 #718679
tetradic
#797186 #867173 #7E8671 #718683
square
#797186 #867173 #7E8671 #718683
split-complementary
#797186 #868371 #738671
monochromatic
#3D3944 #5B5565 #797186 #9892A3 #B7B3BF

Accessibility & contrast

On white

4.65
#797186 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#797186 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797186
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797186#FFFFFF#000000##FFFFFF
##7971861.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D7487
Deuteranopia (green-blind)
#6F7485
Tritanopia (blue-blind)
#777478
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797186;
/* rgb */ color: rgb(121, 113, 134);
/* oklch */ color: oklch(56.3% 0.033 302.7);
Tailwind
colors: {
  custom: {
    50: '#9f99a9',
    500: '#797186',
    950: '#000000',
  },
}
SCSS
$custom: #797186;
$custom-light: #9f99a9;
$custom-dark: #000000;
JSON
{
  "hex": "#797186",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 134
  },
  "hsl": {
    "h": 262.857,
    "s": 8.502,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56318,
    "c": 0.03328,
    "h": 302.7
  },
  "luminance": 0.17596
}

Semantic roles & 50–950 ramp

primary
#797186
secondary
#ABAEA4
accent
#B2769B
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E0F
muted
#7E7E7F

Preview Lab

Preview with #797186

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

Preview Lab → · Contrast checker → · Palette generator →

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