#797BEC#797BEC

#797BEC is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.5% C 0.166 H 279.8°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#797BEC
RGBrgb(121, 123, 236)
HSLhsl(239, 75%, 70%)
HSVhsv(239, 49%, 93%)
CMYKcmyk(48.7%, 47.9%, 0%, 7.5%)
CIE-LABlab(56.37, 28.88, -57.51)
CIE-LCHlch(56.37, 64.35, 296.66°)
OKLaboklab(63.52% 0.0283 -0.1636)
OKLCHoklch(63.52% 0.166 279.8)
XYZxyz(30.1038, 24.2853, 82.4419)
Luminance0.2429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BEC #ECEA79
analogous
#79B4EC #797BEC #B179EC
triadic
#797BEC #EC797B #7BEC79
tetradic
#797BEC #EC79B4 #ECEA79 #79ECB1
square
#797BEC #EC79B4 #ECEA79 #79ECB1
split-complementary
#797BEC #ECB179 #B4EC79
monochromatic
#1D20CD #4346E4 #797BEC #AFB0F4 #E4E5FB

Accessibility & contrast

On white

3.59
#797BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#797BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BEC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BEC#FFFFFF#000000##000000
##797BEC1.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#498CF0
Deuteranopia (green-blind)
#3F83EA
Tritanopia (blue-blind)
#4D93A8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797bec;
/* rgb */ color: rgb(121, 123, 236);
/* oklch */ color: oklch(63.5% 0.166 279.8);
Tailwind
colors: {
  custom: {
    50: '#a6a1f3',
    500: '#797bec',
    950: '#000000',
  },
}
SCSS
$custom: #797bec;
$custom-light: #a6a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#797bec",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 238.957,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.6352,
    "c": 0.16602,
    "h": 279.8
  },
  "luminance": 0.24287
}

Semantic roles & 50–950 ramp

primary
#797BEC
secondary
#F0F0D0
accent
#D40ED7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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