#797188#797188

#797188 is a mid, muted violet. Relative luminance 0.177; OKLCH L 56.4% C 0.036 H 301.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#797188
RGBrgb(121, 113, 136)
HSLhsl(261, 9%, 49%)
HSVhsv(261, 17%, 53%)
CMYKcmyk(11%, 16.9%, 0%, 46.7%)
CIE-LABlab(49.07, 7.88, -11.46)
CIE-LCHlch(49.07, 13.91, 304.52°)
OKLaboklab(56.4% 0.0187 -0.031)
OKLCHoklch(56.4% 0.036 301.1)
XYZxyz(18.2334, 17.6528, 25.7345)
Luminance0.1765 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797188 #808871
analogous
#717588 #797188 #857188
triadic
#797188 #887971 #718879
tetradic
#797188 #887175 #808871 #718885
square
#797188 #887175 #808871 #718885
split-complementary
#797188 #888571 #758871
monochromatic
#3E3945 #5B5567 #797188 #9892A4 #B8B3C0

Accessibility & contrast

On white

4.64
#797188 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#797188 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797188
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797188#FFFFFF#000000##FFFFFF
##7971881.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797188;
/* rgb */ color: rgb(121, 113, 136);
/* oklch */ color: oklch(56.4% 0.036 301.1);
Tailwind
colors: {
  custom: {
    50: '#9f99aa',
    500: '#797188',
    950: '#000000',
  },
}
SCSS
$custom: #797188;
$custom-light: #9f99aa;
$custom-dark: #000000;
JSON
{
  "hex": "#797188",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 136
  },
  "hsl": {
    "h": 260.87,
    "s": 9.237,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56395,
    "c": 0.0362,
    "h": 301.1
  },
  "luminance": 0.17653
}

Semantic roles & 50–950 ramp

primary
#797188
secondary
#ACB0A5
accent
#B2769D
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E10
muted
#7E7E7F

Preview Lab

Preview with #797188

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

Preview Lab → · Contrast checker → · Palette generator →

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