#797ABA#797ABA

#797ABA is a mid, moderate blue. Relative luminance 0.215; OKLCH L 60.5% C 0.097 H 282.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#797ABA
RGBrgb(121, 122, 186)
HSLhsl(239, 32%, 60%)
HSVhsv(239, 35%, 73%)
CMYKcmyk(34.9%, 34.4%, 0%, 27.1%)
CIE-LABlab(53.52, 15.06, -33.76)
CIE-LCHlch(53.52, 36.97, 294.04°)
OKLaboklab(60.51% 0.0208 -0.0943)
OKLCHoklch(60.51% 0.097 282.4)
XYZxyz(23.7052, 21.5284, 49.3513)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ABA #BAB979
analogous
#799ABA #797ABA #9879BA
triadic
#797ABA #BA797A #7ABA79
tetradic
#797ABA #BA799A #BAB979 #79BA98
square
#797ABA #BA799A #BAB979 #79BA98
split-complementary
#797ABA #BA9879 #9ABA79
monochromatic
#3F407A #5455A2 #797ABA #A1A2CF #CACAE4

Accessibility & contrast

On white

3.96
#797ABA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#797ABA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ABA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ABA#FFFFFF#000000##000000
##797ABA1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6682BD
Deuteranopia (green-blind)
#637EB8
Tritanopia (blue-blind)
#688691
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797aba;
/* rgb */ color: rgb(121, 122, 186);
/* oklch */ color: oklch(60.5% 0.097 282.4);
Tailwind
colors: {
  custom: {
    50: '#a2a0cf',
    500: '#797aba',
    950: '#000000',
  },
}
SCSS
$custom: #797aba;
$custom-light: #a2a0cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797aba",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 186
  },
  "hsl": {
    "h": 239.077,
    "s": 32.02,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60505,
    "c": 0.09656,
    "h": 282.4
  },
  "luminance": 0.21529
}

Semantic roles & 50–950 ramp

primary
#797ABA
secondary
#D4D3BB
accent
#A93BAB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #797ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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