#798CE4#798CE4

#798CE4 is a light, vivid blue. Relative luminance 0.284; OKLCH L 66.3% C 0.133 H 273.1°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#798CE4
RGBrgb(121, 140, 228)
HSLhsl(229, 66%, 68%)
HSVhsv(229, 47%, 89%)
CMYKcmyk(46.9%, 38.6%, 0%, 10.6%)
CIE-LABlab(60.27, 16.41, -46.86)
CIE-LCHlch(60.27, 49.65, 289.29°)
OKLaboklab(66.35% 0.0071 -0.1323)
OKLCHoklch(66.35% 0.133 273.1)
XYZxyz(31.2624, 28.4208, 77.2222)
Luminance0.2842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CE4 #E4D179
analogous
#79C1E4 #798CE4 #9B79E4
triadic
#798CE4 #E4798C #8CE479
tetradic
#798CE4 #E479C1 #E4D179 #79E49B
square
#798CE4 #E479C1 #E4D179 #79E49B
split-complementary
#798CE4 #E49B79 #C1E479
monochromatic
#2641BD #4660DA #798CE4 #ACB8EE #DFE3F9

Accessibility & contrast

On white

3.14
#798CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#798CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CE4
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CE4#FFFFFF#000000##000000
##798CE41.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B96E7
Deuteranopia (green-blind)
#618DE2
Tritanopia (blue-blind)
#509EAD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #798ce4;
/* rgb */ color: rgb(121, 140, 228);
/* oklch */ color: oklch(66.3% 0.133 273.1);
Tailwind
colors: {
  custom: {
    50: '#a5aded',
    500: '#798ce4',
    950: '#000000',
  },
}
SCSS
$custom: #798ce4;
$custom-light: #a5aded;
$custom-dark: #000000;
JSON
{
  "hex": "#798ce4",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 228
  },
  "hsl": {
    "h": 229.346,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66348,
    "c": 0.1325,
    "h": 273.1
  },
  "luminance": 0.28423
}

Semantic roles & 50–950 ramp

primary
#798CE4
secondary
#ECE7CC
accent
#AE17CE
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#101016
muted
#7F7F84

Preview Lab

Preview with #798CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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