#797397#797397

#797397 is a mid, muted violet. Relative luminance 0.186; OKLCH L 57.4% C 0.055 H 292.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797397
RGBrgb(121, 115, 151)
HSLhsl(250, 15%, 52%)
HSVhsv(250, 24%, 59%)
CMYKcmyk(19.9%, 23.8%, 0%, 40.8%)
CIE-LABlab(50.17, 10.19, -18.64)
CIE-LCHlch(50.17, 21.24, 298.66°)
OKLaboklab(57.43% 0.0209 -0.0511)
OKLCHoklch(57.43% 0.055 292.2)
XYZxyz(19.6005, 18.5606, 31.8221)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797397 #919773
analogous
#737F97 #797397 #8B7397
triadic
#797397 #977973 #739779
tetradic
#797397 #97737F #919773 #73978B
square
#797397 #97737F #919773 #73978B
split-complementary
#797397 #978B73 #7F9773
monochromatic
#413D52 #5C5776 #797397 #9B96B1 #BCB9CB

Accessibility & contrast

On white

4.46
#797397 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797397 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797397
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797397#FFFFFF#000000##000000
##7973971.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B7899
Deuteranopia (green-blind)
#6B7796
Tritanopia (blue-blind)
#73797F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797397;
/* rgb */ color: rgb(121, 115, 151);
/* oklch */ color: oklch(57.4% 0.055 292.2);
Tailwind
colors: {
  custom: {
    50: '#a09bb5',
    500: '#797397',
    950: '#000000',
  },
}
SCSS
$custom: #797397;
$custom-light: #a09bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#797397",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 151
  },
  "hsl": {
    "h": 250,
    "s": 14.754,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57429,
    "c": 0.05515,
    "h": 292.2
  },
  "luminance": 0.18561
}

Semantic roles & 50–950 ramp

primary
#797397
secondary
#B8BBAB
accent
#B870AC
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0E0E11
muted
#7E7E80

Preview Lab

Preview with #797397

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

Preview Lab → · Contrast checker → · Palette generator →

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