#798BF5#798BF5

#798BF5 is a light, vivid blue. Relative luminance 0.291; OKLCH L 67.1% C 0.157 H 274.1°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#798BF5
RGBrgb(121, 139, 245)
HSLhsl(231, 86%, 72%)
HSVhsv(231, 51%, 96%)
CMYKcmyk(50.6%, 43.3%, 0%, 3.9%)
CIE-LABlab(60.89, 22.10, -55.28)
CIE-LCHlch(60.89, 59.54, 291.79°)
OKLaboklab(67.11% 0.0113 -0.1569)
OKLCHoklch(67.11% 0.157 274.1)
XYZxyz(33.5940, 29.1206, 90.2191)
Luminance0.2912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BF5 #F5E379
analogous
#79C9F5 #798BF5 #A579F5
triadic
#798BF5 #F5798B #8BF579
tetradic
#798BF5 #F579C9 #F5E379 #79F5A5
square
#798BF5 #F579C9 #F5E379 #79F5A5
split-complementary
#798BF5 #F5A579 #C9F579
monochromatic
#112FE3 #405AF1 #798BF5 #B2BCF9 #E3E6FD

Accessibility & contrast

On white

3.08
#798BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#798BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BF5
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BF5#FFFFFF#000000##000000
##798BF51.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F98F9
Deuteranopia (green-blind)
#528EF3
Tritanopia (blue-blind)
#44A2B4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #798bf5;
/* rgb */ color: rgb(121, 139, 245);
/* oklch */ color: oklch(67.1% 0.157 274.1);
Tailwind
colors: {
  custom: {
    50: '#a7acf9',
    500: '#798bf5',
    950: '#000000',
  },
}
SCSS
$custom: #798bf5;
$custom-light: #a7acf9;
$custom-dark: #000000;
JSON
{
  "hex": "#798bf5",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 245
  },
  "hsl": {
    "h": 231.29,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6711,
    "c": 0.15736,
    "h": 274.1
  },
  "luminance": 0.29123
}

Semantic roles & 50–950 ramp

primary
#798BF5
secondary
#F5F0D5
accent
#C203E3
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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