#797BE5#797BE5

#797BE5 is a light, vivid blue. Relative luminance 0.239; OKLCH L 63.1% C 0.156 H 280.1°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#797BE5
RGBrgb(121, 123, 229)
HSLhsl(239, 68%, 69%)
HSVhsv(239, 47%, 90%)
CMYKcmyk(47.2%, 46.3%, 0%, 10.2%)
CIE-LABlab(55.97, 26.79, -54.24)
CIE-LCHlch(55.97, 60.49, 296.28°)
OKLaboklab(63.09% 0.0275 -0.154)
OKLCHoklch(63.09% 0.156 280.1)
XYZxyz(29.1067, 23.8865, 77.1904)
Luminance0.2389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BE5 #E5E379
analogous
#79B1E5 #797BE5 #AD79E5
triadic
#797BE5 #E5797B #7BE579
tetradic
#797BE5 #E579B1 #E5E379 #79E5AD
square
#797BE5 #E579B1 #E5E379 #79E5AD
split-complementary
#797BE5 #E5AD79 #B1E579
monochromatic
#2528BF #4649DB #797BE5 #ACADEF #E0E0F9

Accessibility & contrast

On white

3.63
#797BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#797BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BE5
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BE5#FFFFFF#000000##000000
##797BE51.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8AE9
Deuteranopia (green-blind)
#4682E3
Tritanopia (blue-blind)
#5291A5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797be5;
/* rgb */ color: rgb(121, 123, 229);
/* oklch */ color: oklch(63.1% 0.156 280.1);
Tailwind
colors: {
  custom: {
    50: '#a6a1ee',
    500: '#797be5',
    950: '#000000',
  },
}
SCSS
$custom: #797be5;
$custom-light: #a6a1ee;
$custom-dark: #000000;
JSON
{
  "hex": "#797be5",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 229
  },
  "hsl": {
    "h": 238.889,
    "s": 67.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.6309,
    "c": 0.15643,
    "h": 280.1
  },
  "luminance": 0.23888
}

Semantic roles & 50–950 ramp

primary
#797BE5
secondary
#EDECCD
accent
#CC16CF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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