#797CE8#797CE8

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

Color values

HEX#797CE8
RGBrgb(121, 124, 232)
HSLhsl(238, 71%, 69%)
HSVhsv(238, 48%, 91%)
CMYKcmyk(47.8%, 46.6%, 0%, 9%)
CIE-LABlab(56.39, 27.08, -55.25)
CIE-LCHlch(56.39, 61.53, 296.12°)
OKLaboklab(63.46% 0.0267 -0.157)
OKLCHoklch(63.46% 0.159 279.6)
XYZxyz(29.6539, 24.3049, 79.4571)
Luminance0.2431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CE8 #E8E579
analogous
#79B4E8 #797CE8 #AE79E8
triadic
#797CE8 #E8797C #7CE879
tetradic
#797CE8 #E879B4 #E8E579 #79E8AE
square
#797CE8 #E879B4 #E8E579 #79E8AE
split-complementary
#797CE8 #E8AE79 #B4E879
monochromatic
#2226C5 #4549DF #797CE8 #ADAFF1 #E1E2FA

Accessibility & contrast

On white

3.58
#797CE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797CE8#FFFFFF#000000##000000
##797CE81.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8CEC
Deuteranopia (green-blind)
#4583E6
Tritanopia (blue-blind)
#5093A7
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797ce8;
/* rgb */ color: rgb(121, 124, 232);
/* oklch */ color: oklch(63.5% 0.159 279.6);
Tailwind
colors: {
  custom: {
    50: '#a6a1f0',
    500: '#797ce8',
    950: '#000000',
  },
}
SCSS
$custom: #797ce8;
$custom-light: #a6a1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797ce8",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 232
  },
  "hsl": {
    "h": 238.378,
    "s": 70.701,
    "l": 69.216
  },
  "oklch": {
    "l": 0.63461,
    "c": 0.15921,
    "h": 279.6
  },
  "luminance": 0.24306
}

Semantic roles & 50–950 ramp

primary
#797CE8
secondary
#EFEECE
accent
#CE13D3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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