#797DA2#797DA2

#797DA2 is a mid, muted blue. Relative luminance 0.213; OKLCH L 60.0% C 0.056 H 279.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#797DA2
RGBrgb(121, 125, 162)
HSLhsl(234, 18%, 55%)
HSVhsv(234, 25%, 64%)
CMYKcmyk(25.3%, 22.8%, 0%, 36.5%)
CIE-LABlab(53.32, 6.98, -20.24)
CIE-LCHlch(53.32, 21.41, 289.04°)
OKLaboklab(60.01% 0.0095 -0.0556)
OKLCHoklch(60.01% 0.056 279.7)
XYZxyz(21.7387, 21.3403, 37.1492)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DA2 #A29E79
analogous
#7991A2 #797DA2 #8979A2
triadic
#797DA2 #A2797D #7DA279
tetradic
#797DA2 #A27991 #A29E79 #79A289
square
#797DA2 #A27991 #A29E79 #79A289
split-complementary
#797DA2 #A28979 #91A279
monochromatic
#42455F #5B5F83 #797DA2 #9DA0BB #C1C3D4

Accessibility & contrast

On white

3.99
#797DA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#797DA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DA2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DA2#FFFFFF#000000##000000
##797DA21.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7381A4
Deuteranopia (green-blind)
#717EA1
Tritanopia (blue-blind)
#6F848A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797da2;
/* rgb */ color: rgb(121, 125, 162);
/* oklch */ color: oklch(60.0% 0.056 279.7);
Tailwind
colors: {
  custom: {
    50: '#a0a2bd',
    500: '#797da2',
    950: '#000000',
  },
}
SCSS
$custom: #797da2;
$custom-light: #a0a2bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797da2",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 162
  },
  "hsl": {
    "h": 234.146,
    "s": 18.062,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60014,
    "c": 0.05643,
    "h": 279.7
  },
  "luminance": 0.21341
}

Semantic roles & 50–950 ramp

primary
#797DA2
secondary
#C4C2B3
accent
#B36DBB
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DA2

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

Preview Lab → · Contrast checker → · Palette generator →

#797DA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva