#798AF5#798AF5

#798AF5 is a light, vivid blue. Relative luminance 0.288; OKLCH L 66.9% C 0.159 H 274.5°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#798AF5
RGBrgb(121, 138, 245)
HSLhsl(232, 86%, 72%)
HSVhsv(232, 51%, 96%)
CMYKcmyk(50.6%, 43.7%, 0%, 3.9%)
CIE-LABlab(60.63, 22.69, -55.69)
CIE-LCHlch(60.63, 60.14, 292.17°)
OKLaboklab(66.92% 0.0125 -0.1582)
OKLCHoklch(66.92% 0.159 274.5)
XYZxyz(33.4498, 28.8324, 90.1711)
Luminance0.2883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798AF5 #F5E479
analogous
#79C8F5 #798AF5 #A679F5
triadic
#798AF5 #F5798A #8AF579
tetradic
#798AF5 #F579C8 #F5E479 #79F5A6
square
#798AF5 #F579C8 #F5E479 #79F5A6
split-complementary
#798AF5 #F5A679 #C8F579
monochromatic
#112EE3 #4058F1 #798AF5 #B2BCF9 #E3E6FD

Accessibility & contrast

On white

3.10
#798AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#798AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798AF5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798AF5#FFFFFF#000000##000000
##798AF51.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D98F9
Deuteranopia (green-blind)
#508DF3
Tritanopia (blue-blind)
#44A1B4
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #798af5;
/* rgb */ color: rgb(121, 138, 245);
/* oklch */ color: oklch(66.9% 0.159 274.5);
Tailwind
colors: {
  custom: {
    50: '#a7abf9',
    500: '#798af5',
    950: '#000000',
  },
}
SCSS
$custom: #798af5;
$custom-light: #a7abf9;
$custom-dark: #000000;
JSON
{
  "hex": "#798af5",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 245
  },
  "hsl": {
    "h": 231.774,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66916,
    "c": 0.15864,
    "h": 274.5
  },
  "luminance": 0.28834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #798AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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