#797CEF#797CEF

#797CEF is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.9% C 0.169 H 279.4°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#797CEF
RGBrgb(121, 124, 239)
HSLhsl(238, 79%, 71%)
HSVhsv(238, 49%, 94%)
CMYKcmyk(49.4%, 48.1%, 0%, 6.3%)
CIE-LABlab(56.79, 29.18, -58.51)
CIE-LCHlch(56.79, 65.38, 296.51°)
OKLaboklab(63.89% 0.0274 -0.1665)
OKLCHoklch(63.89% 0.169 279.4)
XYZxyz(30.6680, 24.7105, 84.7982)
Luminance0.2471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CEF #EFEC79
analogous
#79B7EF #797CEF #B179EF
triadic
#797CEF #EF797C #7CEF79
tetradic
#797CEF #EF79B7 #EFEC79 #79EFB1
square
#797CEF #EF79B7 #EFEC79 #79EFB1
split-complementary
#797CEF #EFB179 #B7EF79
monochromatic
#191ED4 #4247E8 #797CEF #B0B1F6 #E4E4FC

Accessibility & contrast

On white

3.53
#797CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#797CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CEF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CEF#FFFFFF#000000##000000
##797CEF1.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#488DF3
Deuteranopia (green-blind)
#3D84EC
Tritanopia (blue-blind)
#4B95AA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797cef;
/* rgb */ color: rgb(121, 124, 239);
/* oklch */ color: oklch(63.9% 0.169 279.4);
Tailwind
colors: {
  custom: {
    50: '#a7a1f5',
    500: '#797cef',
    950: '#000000',
  },
}
SCSS
$custom: #797cef;
$custom-light: #a7a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797cef",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 238.475,
    "s": 78.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.63893,
    "c": 0.16877,
    "h": 279.4
  },
  "luminance": 0.24712
}

Semantic roles & 50–950 ramp

primary
#797CEF
secondary
#F2F1D2
accent
#D60BDB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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