#797BE8#797BE8

#797BE8 is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.3% C 0.161 H 280.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#797BE8
RGBrgb(121, 123, 232)
HSLhsl(239, 71%, 69%)
HSVhsv(239, 48%, 91%)
CMYKcmyk(47.8%, 47%, 0%, 9%)
CIE-LABlab(56.14, 27.68, -55.65)
CIE-LCHlch(56.14, 62.15, 296.45°)
OKLaboklab(63.27% 0.0278 -0.1581)
OKLCHoklch(63.27% 0.161 280)
XYZxyz(29.5292, 24.0555, 79.4155)
Luminance0.2406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BE8 #E8E679
analogous
#79B3E8 #797BE8 #AF79E8
triadic
#797BE8 #E8797B #7BE879
tetradic
#797BE8 #E879B3 #E8E679 #79E8AF
square
#797BE8 #E879B3 #E8E679 #79E8AF
split-complementary
#797BE8 #E8AF79 #B3E879
monochromatic
#2225C5 #4548DF #797BE8 #ADAEF1 #E1E2FA

Accessibility & contrast

On white

3.61
#797BE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#797BE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BE8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BE8#FFFFFF#000000##000000
##797BE81.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8BEC
Deuteranopia (green-blind)
#4382E6
Tritanopia (blue-blind)
#5092A6
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797be8;
/* rgb */ color: rgb(121, 123, 232);
/* oklch */ color: oklch(63.3% 0.161 280.0);
Tailwind
colors: {
  custom: {
    50: '#a6a1f0',
    500: '#797be8',
    950: '#000000',
  },
}
SCSS
$custom: #797be8;
$custom-light: #a6a1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797be8",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 232
  },
  "hsl": {
    "h": 238.919,
    "s": 70.701,
    "l": 69.216
  },
  "oklch": {
    "l": 0.63273,
    "c": 0.16056,
    "h": 280
  },
  "luminance": 0.24057
}

Semantic roles & 50–950 ramp

primary
#797BE8
secondary
#EFEECE
accent
#CF13D3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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