#797DB5#797DB5

#797DB5 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.9% C 0.085 H 280.4°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#797DB5
RGBrgb(121, 125, 181)
HSLhsl(236, 29%, 59%)
HSVhsv(236, 33%, 71%)
CMYKcmyk(33.1%, 30.9%, 0%, 29%)
CIE-LABlab(54.10, 11.92, -30.00)
CIE-LCHlch(54.10, 32.28, 291.68°)
OKLaboklab(60.88% 0.0153 -0.0834)
OKLCHoklch(60.88% 0.085 280.4)
XYZxyz(23.5570, 22.0676, 46.7254)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB5 #B5B179
analogous
#799BB5 #797DB5 #9379B5
triadic
#797DB5 #B5797D #7DB579
tetradic
#797DB5 #B5799B #B5B179 #79B593
square
#797DB5 #B5799B #B5B179 #79B593
split-complementary
#797DB5 #B59379 #9BB579
monochromatic
#404374 #565A9B #797DB5 #A0A3CB #C8CAE1

Accessibility & contrast

On white

3.88
#797DB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#797DB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB5
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB5#FFFFFF#000000##000000
##797DB51.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C84B7
Deuteranopia (green-blind)
#697FB4
Tritanopia (blue-blind)
#698791
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797db5;
/* rgb */ color: rgb(121, 125, 181);
/* oklch */ color: oklch(60.9% 0.085 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2cb',
    500: '#797db5',
    950: '#000000',
  },
}
SCSS
$custom: #797db5;
$custom-light: #a1a2cb;
$custom-dark: #000000;
JSON
{
  "hex": "#797db5",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 181
  },
  "hsl": {
    "h": 236,
    "s": 28.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60875,
    "c": 0.08485,
    "h": 280.4
  },
  "luminance": 0.22068
}

Semantic roles & 50–950 ramp

primary
#797DB5
secondary
#D1CFB9
accent
#BF63C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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