#797DB7#797DB7

#797DB7 is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.0% C 0.088 H 280.4°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#797DB7
RGBrgb(121, 125, 183)
HSLhsl(236, 30%, 60%)
HSVhsv(236, 34%, 72%)
CMYKcmyk(33.9%, 31.7%, 0%, 28.2%)
CIE-LABlab(54.19, 12.46, -31.01)
CIE-LCHlch(54.19, 33.42, 291.90°)
OKLaboklab(60.97% 0.0159 -0.0864)
OKLCHoklch(60.97% 0.088 280.4)
XYZxyz(23.7636, 22.1503, 47.8139)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB7 #B7B379
analogous
#799CB7 #797DB7 #9479B7
triadic
#797DB7 #B7797D #7DB779
tetradic
#797DB7 #B7799C #B7B379 #79B794
square
#797DB7 #B7799C #B7B379 #79B794
split-complementary
#797DB7 #B79479 #9CB779
monochromatic
#3F4376 #555A9E #797DB7 #A1A4CC #C9CAE2

Accessibility & contrast

On white

3.87
#797DB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#797DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB7#FFFFFF#000000##000000
##797DB71.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B84B9
Deuteranopia (green-blind)
#687FB6
Tritanopia (blue-blind)
#688892
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797db7;
/* rgb */ color: rgb(121, 125, 183);
/* oklch */ color: oklch(61.0% 0.088 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2cd',
    500: '#797db7',
    950: '#000000',
  },
}
SCSS
$custom: #797db7;
$custom-light: #a1a2cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797db7",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 183
  },
  "hsl": {
    "h": 236.129,
    "s": 30.097,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60971,
    "c": 0.08781,
    "h": 280.4
  },
  "luminance": 0.22151
}

Semantic roles & 50–950 ramp

primary
#797DB7
secondary
#D2D0BA
accent
#C061C6
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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