#797FCE#797FCE

#797FCE is a light, moderate blue. Relative luminance 0.237; OKLCH L 62.6% C 0.119 H 279.1°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#797FCE
RGBrgb(121, 127, 206)
HSLhsl(236, 46%, 64%)
HSVhsv(236, 41%, 81%)
CMYKcmyk(41.3%, 38.3%, 0%, 19.2%)
CIE-LABlab(55.78, 17.68, -41.60)
CIE-LCHlch(55.78, 45.21, 293.03°)
OKLaboklab(62.55% 0.0187 -0.117)
OKLCHoklch(62.55% 0.119 279.1)
XYZxyz(26.6118, 23.6988, 61.5527)
Luminance0.2370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FCE #CEC879
analogous
#79AACE #797FCE #9E79CE
triadic
#797FCE #CE797F #7FCE79
tetradic
#797FCE #CE79AA #CEC879 #79CE9E
square
#797FCE #CE79AA #CEC879 #79CE9E
split-complementary
#797FCE #CE9E79 #AACE79
monochromatic
#373D96 #4C54BE #797FCE #A6AADE #D3D5EF

Accessibility & contrast

On white

3.66
#797FCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#797FCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FCE
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FCE#FFFFFF#000000##000000
##797FCE1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6389D1
Deuteranopia (green-blind)
#5E83CC
Tritanopia (blue-blind)
#5F8F9D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797fce;
/* rgb */ color: rgb(121, 127, 206);
/* oklch */ color: oklch(62.6% 0.119 279.1);
Tailwind
colors: {
  custom: {
    50: '#a3a4dd',
    500: '#797fce',
    950: '#000000',
  },
}
SCSS
$custom: #797fce;
$custom-light: #a3a4dd;
$custom-dark: #000000;
JSON
{
  "hex": "#797fce",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 206
  },
  "hsl": {
    "h": 235.765,
    "s": 46.448,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62552,
    "c": 0.11852,
    "h": 279.1
  },
  "luminance": 0.237
}

Semantic roles & 50–950 ramp

primary
#797FCE
secondary
#E0DEC3
accent
#B02CBA
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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