#797DAF#797DAF

#797DAF is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.6% C 0.076 H 280.3°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#797DAF
RGBrgb(121, 125, 175)
HSLhsl(236, 25%, 58%)
HSVhsv(236, 31%, 69%)
CMYKcmyk(30.9%, 28.6%, 0%, 31.4%)
CIE-LABlab(53.84, 10.33, -26.94)
CIE-LCHlch(53.84, 28.85, 290.97°)
OKLaboklab(60.59% 0.0136 -0.0747)
OKLCHoklch(60.59% 0.076 280.3)
XYZxyz(22.9545, 21.8267, 43.5527)
Luminance0.2183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DAF #AFAB79
analogous
#7998AF #797DAF #9079AF
triadic
#797DAF #AF797D #7DAF79
tetradic
#797DAF #AF7998 #AFAB79 #79AF90
square
#797DAF #AF7998 #AFAB79 #79AF90
split-complementary
#797DAF #AF9079 #98AF79
monochromatic
#41446D #585C93 #797DAF #9FA2C6 #C6C7DD

Accessibility & contrast

On white

3.91
#797DAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#797DAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DAF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DAF#FFFFFF#000000##000000
##797DAF1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E83B1
Deuteranopia (green-blind)
#6C7FAE
Tritanopia (blue-blind)
#6B868F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797daf;
/* rgb */ color: rgb(121, 125, 175);
/* oklch */ color: oklch(60.6% 0.076 280.3);
Tailwind
colors: {
  custom: {
    50: '#a1a2c7',
    500: '#797daf',
    950: '#000000',
  },
}
SCSS
$custom: #797daf;
$custom-light: #a1a2c7;
$custom-dark: #000000;
JSON
{
  "hex": "#797daf",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 175
  },
  "hsl": {
    "h": 235.556,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60593,
    "c": 0.07592,
    "h": 280.3
  },
  "luminance": 0.21827
}

Semantic roles & 50–950 ramp

primary
#797DAF
secondary
#CDCBB7
accent
#BB66C2
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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