#797BB8#797BB8

#797BB8 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.6% C 0.092 H 281.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#797BB8
RGBrgb(121, 123, 184)
HSLhsl(238, 31%, 60%)
HSVhsv(238, 34%, 72%)
CMYKcmyk(34.2%, 33.2%, 0%, 27.8%)
CIE-LABlab(53.70, 13.92, -32.34)
CIE-LCHlch(53.70, 35.21, 293.29°)
OKLaboklab(60.61% 0.0189 -0.0902)
OKLCHoklch(60.61% 0.092 281.8)
XYZxyz(23.6175, 21.6908, 48.2805)
Luminance0.2169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB8 #B8B679
analogous
#799BB8 #797BB8 #9679B8
triadic
#797BB8 #B8797B #7BB879
tetradic
#797BB8 #B8799B #B8B679 #79B896
square
#797BB8 #B8799B #B8B679 #79B896
split-complementary
#797BB8 #B89679 #9BB879
monochromatic
#3F4177 #54579F #797BB8 #A1A2CD #C9CAE2

Accessibility & contrast

On white

3.93
#797BB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#797BB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB8#FFFFFF#000000##000000
##797BB81.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6883BA
Deuteranopia (green-blind)
#657EB6
Tritanopia (blue-blind)
#688691
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb8;
/* rgb */ color: rgb(121, 123, 184);
/* oklch */ color: oklch(60.6% 0.092 281.8);
Tailwind
colors: {
  custom: {
    50: '#a1a1cd',
    500: '#797bb8',
    950: '#000000',
  },
}
SCSS
$custom: #797bb8;
$custom-light: #a1a1cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb8",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 184
  },
  "hsl": {
    "h": 238.095,
    "s": 30.732,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60609,
    "c": 0.09216,
    "h": 281.8
  },
  "luminance": 0.21692
}

Semantic roles & 50–950 ramp

primary
#797BB8
secondary
#D3D2BA
accent
#C461C7
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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