#797FC8#797FC8

#797FC8 is a light, moderate blue. Relative luminance 0.234; OKLCH L 62.2% C 0.110 H 279.1°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#797FC8
RGBrgb(121, 127, 200)
HSLhsl(235, 42%, 63%)
HSVhsv(235, 40%, 78%)
CMYKcmyk(39.5%, 36.5%, 0%, 21.6%)
CIE-LABlab(55.49, 15.98, -38.66)
CIE-LCHlch(55.49, 41.83, 292.45°)
OKLaboklab(62.24% 0.0174 -0.1085)
OKLCHoklch(62.24% 0.11 279.1)
XYZxyz(25.8968, 23.4128, 57.7870)
Luminance0.2341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FC8 #C8C279
analogous
#79A6C8 #797FC8 #9A79C8
triadic
#797FC8 #C8797F #7FC879
tetradic
#797FC8 #C879A6 #C8C279 #79C89A
square
#797FC8 #C879A6 #C8C279 #79C89A
split-complementary
#797FC8 #C89A79 #A6C879
monochromatic
#3A408D #4E56B6 #797FC8 #A4A8DA #D0D2EC

Accessibility & contrast

On white

3.70
#797FC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#797FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FC8
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FC8#FFFFFF#000000##000000
##797FC81.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6688CB
Deuteranopia (green-blind)
#6282C6
Tritanopia (blue-blind)
#618D9A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797fc8;
/* rgb */ color: rgb(121, 127, 200);
/* oklch */ color: oklch(62.2% 0.110 279.1);
Tailwind
colors: {
  custom: {
    50: '#a3a4d9',
    500: '#797fc8',
    950: '#000000',
  },
}
SCSS
$custom: #797fc8;
$custom-light: #a3a4d9;
$custom-dark: #000000;
JSON
{
  "hex": "#797fc8",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 200
  },
  "hsl": {
    "h": 235.443,
    "s": 41.799,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62235,
    "c": 0.10987,
    "h": 279.1
  },
  "luminance": 0.23414
}

Semantic roles & 50–950 ramp

primary
#797FC8
secondary
#DDDAC0
accent
#AB31B5
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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