#797DAD#797DAD

#797DAD is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.5% C 0.073 H 280.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#797DAD
RGBrgb(121, 125, 173)
HSLhsl(235, 24%, 58%)
HSVhsv(235, 30%, 68%)
CMYKcmyk(30.1%, 27.7%, 0%, 32.2%)
CIE-LABlab(53.76, 9.80, -25.92)
CIE-LCHlch(53.76, 27.71, 290.71°)
OKLaboklab(60.5% 0.013 -0.0718)
OKLCHoklch(60.5% 0.073 280.3)
XYZxyz(22.7596, 21.7487, 42.5258)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DAD #ADA979
analogous
#7997AD #797DAD #8F79AD
triadic
#797DAD #AD797D #7DAD79
tetradic
#797DAD #AD7997 #ADA979 #79AD8F
square
#797DAD #AD7997 #ADA979 #79AD8F
split-complementary
#797DAD #AD8F79 #97AD79
monochromatic
#41446A #585D90 #797DAD #9FA2C4 #C5C7DB

Accessibility & contrast

On white

3.93
#797DAD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#797DAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DAD
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DAD#FFFFFF#000000##000000
##797DAD1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F82AF
Deuteranopia (green-blind)
#6D7FAC
Tritanopia (blue-blind)
#6C868E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797dad;
/* rgb */ color: rgb(121, 125, 173);
/* oklch */ color: oklch(60.5% 0.073 280.3);
Tailwind
colors: {
  custom: {
    50: '#a1a2c5',
    500: '#797dad',
    950: '#000000',
  },
}
SCSS
$custom: #797dad;
$custom-light: #a1a2c5;
$custom-dark: #000000;
JSON
{
  "hex": "#797dad",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 173
  },
  "hsl": {
    "h": 235.385,
    "s": 24.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60501,
    "c": 0.07294,
    "h": 280.3
  },
  "luminance": 0.21749
}

Semantic roles & 50–950 ramp

primary
#797DAD
secondary
#CBCAB6
accent
#BA67C1
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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