#797DB8#797DB8

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

Color values

HEX#797DB8
RGBrgb(121, 125, 184)
HSLhsl(236, 31%, 60%)
HSVhsv(236, 34%, 72%)
CMYKcmyk(34.2%, 32.1%, 0%, 27.8%)
CIE-LABlab(54.23, 12.73, -31.51)
CIE-LCHlch(54.23, 33.99, 292.00°)
OKLaboklab(61.02% 0.0161 -0.0878)
OKLCHoklch(61.02% 0.089 280.4)
XYZxyz(23.8681, 22.1921, 48.3640)
Luminance0.2219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB8 #B8B479
analogous
#799DB8 #797DB8 #9479B8
triadic
#797DB8 #B8797D #7DB879
tetradic
#797DB8 #B8799D #B8B479 #79B894
square
#797DB8 #B8799D #B8B479 #79B894
split-complementary
#797DB8 #B89479 #9DB879
monochromatic
#3F4377 #54599F #797DB8 #A1A4CD #C9CBE2

Accessibility & contrast

On white

3.86
#797DB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#797DB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB8#FFFFFF#000000##000000
##797DB81.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B84BA
Deuteranopia (green-blind)
#6880B7
Tritanopia (blue-blind)
#688892
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797db8;
/* rgb */ color: rgb(121, 125, 184);
/* oklch */ color: oklch(61.0% 0.089 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2cd',
    500: '#797db8',
    950: '#000000',
  },
}
SCSS
$custom: #797db8;
$custom-light: #a1a2cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797db8",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 184
  },
  "hsl": {
    "h": 236.19,
    "s": 30.732,
    "l": 59.804
  },
  "oklch": {
    "l": 0.6102,
    "c": 0.08928,
    "h": 280.4
  },
  "luminance": 0.22193
}

Semantic roles & 50–950 ramp

primary
#797DB8
secondary
#D3D1BA
accent
#C061C7
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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