#797ECF#797ECF

#797ECF is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.4% C 0.121 H 279.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#797ECF
RGBrgb(121, 126, 207)
HSLhsl(237, 47%, 64%)
HSVhsv(237, 42%, 81%)
CMYKcmyk(41.5%, 39.1%, 0%, 18.8%)
CIE-LABlab(55.57, 18.57, -42.50)
CIE-LCHlch(55.57, 46.38, 293.60°)
OKLaboklab(62.41% 0.0202 -0.1197)
OKLCHoklch(62.41% 0.121 279.6)
XYZxyz(26.6052, 23.4905, 62.1517)
Luminance0.2349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ECF #CFCA79
analogous
#79A9CF #797ECF #9F79CF
triadic
#797ECF #CF797E #7ECF79
tetradic
#797ECF #CF79A9 #CFCA79 #79CF9F
square
#797ECF #CF79A9 #CFCA79 #79CF9F
split-complementary
#797ECF #CF9F79 #A9CF79
monochromatic
#363C97 #4C53BF #797ECF #A6A9DF #D3D5EF

Accessibility & contrast

On white

3.69
#797ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#797ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ECF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ECF#FFFFFF#000000##000000
##797ECF1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6288D2
Deuteranopia (green-blind)
#5C82CD
Tritanopia (blue-blind)
#5E8E9C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ecf;
/* rgb */ color: rgb(121, 126, 207);
/* oklch */ color: oklch(62.4% 0.121 279.6);
Tailwind
colors: {
  custom: {
    50: '#a3a3de',
    500: '#797ecf',
    950: '#000000',
  },
}
SCSS
$custom: #797ecf;
$custom-light: #a3a3de;
$custom-dark: #000000;
JSON
{
  "hex": "#797ecf",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 236.512,
    "s": 47.253,
    "l": 64.314
  },
  "oklch": {
    "l": 0.62407,
    "c": 0.12135,
    "h": 279.6
  },
  "luminance": 0.23492
}

Semantic roles & 50–950 ramp

primary
#797ECF
secondary
#E1DFC3
accent
#B22BBB
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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