#797AAA#797AAA

#797AAA is a mid, moderate blue. Relative luminance 0.209; OKLCH L 59.7% C 0.073 H 283.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#797AAA
RGBrgb(121, 122, 170)
HSLhsl(239, 22%, 57%)
HSVhsv(239, 29%, 67%)
CMYKcmyk(28.8%, 28.2%, 0%, 33.3%)
CIE-LABlab(52.82, 10.80, -25.63)
CIE-LCHlch(52.82, 27.81, 292.84°)
OKLaboklab(59.74% 0.0164 -0.0709)
OKLCHoklch(59.74% 0.073 283)
XYZxyz(22.0985, 20.8858, 40.8895)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AAA #AAA979
analogous
#7993AA #797AAA #9179AA
triadic
#797AAA #AA797A #7AAA79
tetradic
#797AAA #AA7993 #AAA979 #79AA91
square
#797AAA #AA7993 #AAA979 #79AA91
split-complementary
#797AAA #AA9179 #93AA79
monochromatic
#414267 #595A8D #797AAA #9E9FC2 #C4C4DA

Accessibility & contrast

On white

4.06
#797AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#797AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AAA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AAA#FFFFFF#000000##000000
##797AAA1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D80AC
Deuteranopia (green-blind)
#6B7DA9
Tritanopia (blue-blind)
#6D838B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797aaa;
/* rgb */ color: rgb(121, 122, 170);
/* oklch */ color: oklch(59.7% 0.073 283.0);
Tailwind
colors: {
  custom: {
    50: '#a1a0c3',
    500: '#797aaa',
    950: '#000000',
  },
}
SCSS
$custom: #797aaa;
$custom-light: #a1a0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#797aaa",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 170
  },
  "hsl": {
    "h": 238.776,
    "s": 22.374,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59736,
    "c": 0.07282,
    "h": 283
  },
  "luminance": 0.20886
}

Semantic roles & 50–950 ramp

primary
#797AAA
secondary
#C9C9B5
accent
#BD69BF
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0E12
muted
#7E7E81

Preview Lab

Preview with #797AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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