#797BC8#797BC8

#797BC8 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.4% C 0.116 H 281.3°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#797BC8
RGBrgb(121, 123, 200)
HSLhsl(238, 42%, 63%)
HSVhsv(238, 40%, 78%)
CMYKcmyk(39.5%, 38.5%, 0%, 21.6%)
CIE-LABlab(54.45, 18.36, -40.31)
CIE-LCHlch(54.45, 44.29, 294.49°)
OKLaboklab(61.43% 0.0226 -0.1133)
OKLCHoklch(61.43% 0.116 281.3)
XYZxyz(25.3904, 22.4000, 57.6182)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC8 #C8C679
analogous
#79A2C8 #797BC8 #9E79C8
triadic
#797BC8 #C8797B #7BC879
tetradic
#797BC8 #C879A2 #C8C679 #79C89E
square
#797BC8 #C879A2 #C8C679 #79C89E
split-complementary
#797BC8 #C89E79 #A2C879
monochromatic
#3A3C8D #4E50B6 #797BC8 #A4A6DA #D0D0EC

Accessibility & contrast

On white

3.83
#797BC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#797BC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC8
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC8#FFFFFF#000000##000000
##797BC81.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6185CB
Deuteranopia (green-blind)
#5D80C6
Tritanopia (blue-blind)
#628A98
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bc8;
/* rgb */ color: rgb(121, 123, 200);
/* oklch */ color: oklch(61.4% 0.116 281.3);
Tailwind
colors: {
  custom: {
    50: '#a3a1d9',
    500: '#797bc8',
    950: '#000000',
  },
}
SCSS
$custom: #797bc8;
$custom-light: #a3a1d9;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc8",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 200
  },
  "hsl": {
    "h": 238.481,
    "s": 41.799,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61433,
    "c": 0.11552,
    "h": 281.3
  },
  "luminance": 0.22401
}

Semantic roles & 50–950 ramp

primary
#797BC8
secondary
#DDDCC0
accent
#B231B5
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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