#797286#797286

#797286 is a mid, muted violet. Relative luminance 0.178; OKLCH L 56.5% C 0.031 H 301.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#797286
RGBrgb(121, 114, 134)
HSLhsl(261, 8%, 49%)
HSVhsv(261, 15%, 53%)
CMYKcmyk(9.7%, 14.9%, 0%, 47.5%)
CIE-LABlab(49.28, 6.85, -9.97)
CIE-LCHlch(49.28, 12.09, 304.48°)
OKLaboklab(56.53% 0.0164 -0.0269)
OKLCHoklch(56.53% 0.031 301.3)
XYZxyz(18.2047, 17.8208, 25.0303)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797286 #7F8672
analogous
#727586 #797286 #837286
triadic
#797286 #867972 #728679
tetradic
#797286 #867275 #7F8672 #728683
square
#797286 #867275 #7F8672 #728683
split-complementary
#797286 #868372 #758672
monochromatic
#3D3A44 #5B5665 #797286 #9893A3 #B8B4BF

Accessibility & contrast

On white

4.60
#797286 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#797286 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797286
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797286#FFFFFF#000000##FFFFFF
##7972861.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E7587
Deuteranopia (green-blind)
#707585
Tritanopia (blue-blind)
#777579
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797286;
/* rgb */ color: rgb(121, 114, 134);
/* oklch */ color: oklch(56.5% 0.031 301.3);
Tailwind
colors: {
  custom: {
    50: '#9f9aa9',
    500: '#797286',
    950: '#000000',
  },
}
SCSS
$custom: #797286;
$custom-light: #9f9aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#797286",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 134
  },
  "hsl": {
    "h": 261,
    "s": 8.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56532,
    "c": 0.03148,
    "h": 301.3
  },
  "luminance": 0.17821
}

Semantic roles & 50–950 ramp

primary
#797286
secondary
#ABAFA5
accent
#B1779D
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E0F
muted
#7E7E7F

Preview Lab

Preview with #797286

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

Preview Lab → · Contrast checker → · Palette generator →

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