#797EC8#797EC8

#797EC8 is a light, moderate blue. Relative luminance 0.232; OKLCH L 62.0% C 0.111 H 279.7°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#797EC8
RGBrgb(121, 126, 200)
HSLhsl(236, 42%, 63%)
HSVhsv(236, 40%, 78%)
CMYKcmyk(39.5%, 37%, 0%, 21.6%)
CIE-LABlab(55.23, 16.57, -39.07)
CIE-LCHlch(55.23, 42.44, 292.98°)
OKLaboklab(62.03% 0.0187 -0.1097)
OKLCHoklch(62.03% 0.111 279.7)
XYZxyz(25.7683, 23.1557, 57.7442)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC8 #C8C379
analogous
#79A5C8 #797EC8 #9C79C8
triadic
#797EC8 #C8797E #7EC879
tetradic
#797EC8 #C879A5 #C8C379 #79C89C
square
#797EC8 #C879A5 #C8C379 #79C89C
split-complementary
#797EC8 #C89C79 #A5C879
monochromatic
#3A3F8D #4E54B6 #797EC8 #A4A8DA #D0D2EC

Accessibility & contrast

On white

3.73
#797EC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#797EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC8#FFFFFF#000000##000000
##797EC81.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6587CB
Deuteranopia (green-blind)
#6081C6
Tritanopia (blue-blind)
#618D99
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ec8;
/* rgb */ color: rgb(121, 126, 200);
/* oklch */ color: oklch(62.0% 0.111 279.7);
Tailwind
colors: {
  custom: {
    50: '#a3a3d9',
    500: '#797ec8',
    950: '#000000',
  },
}
SCSS
$custom: #797ec8;
$custom-light: #a3a3d9;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec8",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 200
  },
  "hsl": {
    "h": 236.203,
    "s": 41.799,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62033,
    "c": 0.11127,
    "h": 279.7
  },
  "luminance": 0.23157
}

Semantic roles & 50–950 ramp

primary
#797EC8
secondary
#DDDBC0
accent
#AC31B5
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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