#797DA8#797DA8

#797DA8 is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.3% C 0.065 H 280.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#797DA8
RGBrgb(121, 125, 168)
HSLhsl(235, 21%, 57%)
HSVhsv(235, 28%, 66%)
CMYKcmyk(28%, 25.6%, 0%, 34.1%)
CIE-LABlab(53.56, 8.51, -23.35)
CIE-LCHlch(53.56, 24.85, 290.02°)
OKLaboklab(60.28% 0.0115 -0.0644)
OKLCHoklch(60.28% 0.065 280.1)
XYZxyz(22.2848, 21.5588, 40.0253)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DA8 #A8A479
analogous
#7995A8 #797DA8 #8D79A8
triadic
#797DA8 #A8797D #7DA879
tetradic
#797DA8 #A87995 #A8A479 #79A88D
square
#797DA8 #A87995 #A8A479 #79A88D
split-complementary
#797DA8 #A88D79 #95A879
monochromatic
#424565 #5A5E8A #797DA8 #9EA1C0 #C3C5D8

Accessibility & contrast

On white

3.95
#797DA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797DA8#FFFFFF#000000##000000
##797DA81.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7182AA
Deuteranopia (green-blind)
#6F7EA7
Tritanopia (blue-blind)
#6D858C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797da8;
/* rgb */ color: rgb(121, 125, 168);
/* oklch */ color: oklch(60.3% 0.065 280.1);
Tailwind
colors: {
  custom: {
    50: '#a0a2c2',
    500: '#797da8',
    950: '#000000',
  },
}
SCSS
$custom: #797da8;
$custom-light: #a0a2c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797da8",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 168
  },
  "hsl": {
    "h": 234.894,
    "s": 21.267,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60275,
    "c": 0.06546,
    "h": 280.1
  },
  "luminance": 0.21559
}

Semantic roles & 50–950 ramp

primary
#797DA8
secondary
#C8C6B5
accent
#B76ABE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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