#797DC8#797DC8

#797DC8 is a mid, moderate blue. Relative luminance 0.229; OKLCH L 61.8% C 0.113 H 280.2°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#797DC8
RGBrgb(121, 125, 200)
HSLhsl(237, 42%, 63%)
HSVhsv(237, 40%, 78%)
CMYKcmyk(39.5%, 37.5%, 0%, 21.6%)
CIE-LABlab(54.97, 17.17, -39.48)
CIE-LCHlch(54.97, 43.06, 293.50°)
OKLaboklab(61.83% 0.02 -0.1109)
OKLCHoklch(61.83% 0.113 280.2)
XYZxyz(25.6411, 22.9013, 57.7017)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC8 #C8C479
analogous
#79A4C8 #797DC8 #9C79C8
triadic
#797DC8 #C8797D #7DC879
tetradic
#797DC8 #C879A4 #C8C479 #79C89C
square
#797DC8 #C879A4 #C8C479 #79C89C
split-complementary
#797DC8 #C89C79 #A4C879
monochromatic
#3A3E8D #4E53B6 #797DC8 #A4A7DA #D0D1EC

Accessibility & contrast

On white

3.76
#797DC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#797DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC8#FFFFFF#000000##000000
##797DC81.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6487CB
Deuteranopia (green-blind)
#5F81C6
Tritanopia (blue-blind)
#628C99
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797dc8;
/* rgb */ color: rgb(121, 125, 200);
/* oklch */ color: oklch(61.8% 0.113 280.2);
Tailwind
colors: {
  custom: {
    50: '#a3a2d9',
    500: '#797dc8',
    950: '#000000',
  },
}
SCSS
$custom: #797dc8;
$custom-light: #a3a2d9;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc8",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 200
  },
  "hsl": {
    "h": 236.962,
    "s": 41.799,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61832,
    "c": 0.11267,
    "h": 280.2
  },
  "luminance": 0.22902
}

Semantic roles & 50–950 ramp

primary
#797DC8
secondary
#DDDBC0
accent
#AE31B5
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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