#797CCE#797CCE

#797CCE is a mid, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.123 H 280.6°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#797CCE
RGBrgb(121, 124, 206)
HSLhsl(238, 46%, 64%)
HSVhsv(238, 41%, 81%)
CMYKcmyk(41.3%, 39.8%, 0%, 19.2%)
CIE-LABlab(55.01, 19.47, -42.83)
CIE-LCHlch(55.01, 47.05, 294.44°)
OKLaboklab(61.96% 0.0226 -0.1206)
OKLCHoklch(61.96% 0.123 280.6)
XYZxyz(26.2301, 22.9354, 61.4254)
Luminance0.2294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CCE #CECB79
analogous
#79A7CE #797CCE #A179CE
triadic
#797CCE #CE797C #7CCE79
tetradic
#797CCE #CE79A7 #CECB79 #79CEA1
square
#797CCE #CE79A7 #CECB79 #79CEA1
split-complementary
#797CCE #CEA179 #A7CE79
monochromatic
#373A96 #4C50BE #797CCE #A6A8DE #D3D4EF

Accessibility & contrast

On white

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

On black

5.59
#797CCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CCE
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CCE#FFFFFF#000000##000000
##797CCE1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F87D1
Deuteranopia (green-blind)
#5A81CC
Tritanopia (blue-blind)
#5F8C9B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797cce;
/* rgb */ color: rgb(121, 124, 206);
/* oklch */ color: oklch(62.0% 0.123 280.6);
Tailwind
colors: {
  custom: {
    50: '#a3a1dd',
    500: '#797cce',
    950: '#000000',
  },
}
SCSS
$custom: #797cce;
$custom-light: #a3a1dd;
$custom-dark: #000000;
JSON
{
  "hex": "#797cce",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 206
  },
  "hsl": {
    "h": 237.882,
    "s": 46.448,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61956,
    "c": 0.12272,
    "h": 280.6
  },
  "luminance": 0.22936
}

Semantic roles & 50–950 ramp

primary
#797CCE
secondary
#E0DFC3
accent
#B52CBA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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