#797BEF#797BEF

#797BEF is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.7% C 0.170 H 279.7°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#797BEF
RGBrgb(121, 123, 239)
HSLhsl(239, 79%, 71%)
HSVhsv(239, 49%, 94%)
CMYKcmyk(49.4%, 48.5%, 0%, 6.3%)
CIE-LABlab(56.55, 29.77, -58.90)
CIE-LCHlch(56.55, 66.00, 296.82°)
OKLaboklab(63.71% 0.0286 -0.1677)
OKLCHoklch(63.71% 0.17 279.7)
XYZxyz(30.5433, 24.4611, 84.7567)
Luminance0.2446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BEF #EFED79
analogous
#79B6EF #797BEF #B279EF
triadic
#797BEF #EF797B #7BEF79
tetradic
#797BEF #EF79B6 #EFED79 #79EFB2
square
#797BEF #EF79B6 #EFED79 #79EFB2
split-complementary
#797BEF #EFB279 #B6EF79
monochromatic
#191DD4 #4245E8 #797BEF #B0B1F6 #E4E4FC

Accessibility & contrast

On white

3.56
#797BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#797BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BEF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BEF#FFFFFF#000000##000000
##797BEF1.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#468CF3
Deuteranopia (green-blind)
#3B83EC
Tritanopia (blue-blind)
#4B94AA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797bef;
/* rgb */ color: rgb(121, 123, 239);
/* oklch */ color: oklch(63.7% 0.170 279.7);
Tailwind
colors: {
  custom: {
    50: '#a7a1f5',
    500: '#797bef',
    950: '#000000',
  },
}
SCSS
$custom: #797bef;
$custom-light: #a7a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797bef",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 238.983,
    "s": 78.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.63707,
    "c": 0.17009,
    "h": 279.7
  },
  "luminance": 0.24463
}

Semantic roles & 50–950 ramp

primary
#797BEF
secondary
#F2F1D2
accent
#D70BDB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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