#798FE4#798FE4

#798FE4 is a light, vivid blue. Relative luminance 0.293; OKLCH L 67.0% C 0.129 H 271.6°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#798FE4
RGBrgb(121, 143, 228)
HSLhsl(228, 66%, 68%)
HSVhsv(228, 47%, 89%)
CMYKcmyk(46.9%, 37.3%, 0%, 10.6%)
CIE-LABlab(61.05, 14.64, -45.62)
CIE-LCHlch(61.05, 47.91, 287.79°)
OKLaboklab(66.95% 0.0035 -0.1287)
OKLCHoklch(66.95% 0.129 271.6)
XYZxyz(31.7068, 29.3094, 77.3703)
Luminance0.2931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798FE4 #E4CE79
analogous
#79C4E4 #798FE4 #9879E4
triadic
#798FE4 #E4798F #8FE479
tetradic
#798FE4 #E479C4 #E4CE79 #79E498
square
#798FE4 #E479C4 #E4CE79 #79E498
split-complementary
#798FE4 #E49879 #C4E479
monochromatic
#2645BD #4664DA #798FE4 #ACBAEE #DFE4F9

Accessibility & contrast

On white

3.06
#798FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#798FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798FE4
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798FE4#FFFFFF#000000##000000
##798FE41.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F98E7
Deuteranopia (green-blind)
#658FE2
Tritanopia (blue-blind)
#50A1AF
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #798fe4;
/* rgb */ color: rgb(121, 143, 228);
/* oklch */ color: oklch(67.0% 0.129 271.6);
Tailwind
colors: {
  custom: {
    50: '#a5afed',
    500: '#798fe4',
    950: '#000000',
  },
}
SCSS
$custom: #798fe4;
$custom-light: #a5afed;
$custom-dark: #000000;
JSON
{
  "hex": "#798fe4",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 228
  },
  "hsl": {
    "h": 227.664,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66953,
    "c": 0.12872,
    "h": 271.6
  },
  "luminance": 0.29311
}

Semantic roles & 50–950 ramp

primary
#798FE4
secondary
#ECE6CC
accent
#A917CE
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#101016
muted
#7F7F84

Preview Lab

Preview with #798FE4

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

Preview Lab → · Contrast checker → · Palette generator →

#798FE4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva