#797AEF#797AEF

#797AEF is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.5% C 0.171 H 280.0°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#797AEF
RGBrgb(121, 122, 239)
HSLhsl(239, 79%, 71%)
HSVhsv(239, 49%, 94%)
CMYKcmyk(49.4%, 49%, 0%, 6.3%)
CIE-LABlab(56.30, 30.37, -59.29)
CIE-LCHlch(56.30, 66.62, 297.12°)
OKLaboklab(63.52% 0.0297 -0.1688)
OKLCHoklch(63.52% 0.171 280)
XYZxyz(30.4199, 24.2143, 84.7155)
Luminance0.2422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AEF #EFEE79
analogous
#79B5EF #797AEF #B379EF
triadic
#797AEF #EF797A #7AEF79
tetradic
#797AEF #EF79B5 #EFEE79 #79EFB3
square
#797AEF #EF79B5 #EFEE79 #79EFB3
split-complementary
#797AEF #EFB379 #B5EF79
monochromatic
#191BD4 #4244E8 #797AEF #B0B0F6 #E4E4FC

Accessibility & contrast

On white

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

On black

5.84
#797AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AEF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AEF#FFFFFF#000000##000000
##797AEF1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#448CF3
Deuteranopia (green-blind)
#3983EC
Tritanopia (blue-blind)
#4B93A9
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797aef;
/* rgb */ color: rgb(121, 122, 239);
/* oklch */ color: oklch(63.5% 0.171 280.0);
Tailwind
colors: {
  custom: {
    50: '#a7a0f5',
    500: '#797aef',
    950: '#000000',
  },
}
SCSS
$custom: #797aef;
$custom-light: #a7a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797aef",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 239.492,
    "s": 78.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.63523,
    "c": 0.17143,
    "h": 280
  },
  "luminance": 0.24216
}

Semantic roles & 50–950 ramp

primary
#797AEF
secondary
#F2F2D2
accent
#D90BDB
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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