#798CF5#798CF5

#798CF5 is a light, vivid blue. Relative luminance 0.294; OKLCH L 67.3% C 0.156 H 273.8°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#798CF5
RGBrgb(121, 140, 245)
HSLhsl(231, 86%, 72%)
HSVhsv(231, 51%, 96%)
CMYKcmyk(50.6%, 42.9%, 0%, 3.9%)
CIE-LABlab(61.14, 21.51, -54.88)
CIE-LCHlch(61.14, 58.94, 291.41°)
OKLaboklab(67.31% 0.0102 -0.1558)
OKLCHoklch(67.31% 0.156 273.8)
XYZxyz(33.7394, 29.4115, 90.2676)
Luminance0.2941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CF5 #F5E279
analogous
#79CAF5 #798CF5 #A479F5
triadic
#798CF5 #F5798C #8CF579
tetradic
#798CF5 #F579CA #F5E279 #79F5A4
square
#798CF5 #F579CA #F5E279 #79F5A4
split-complementary
#798CF5 #F5A479 #CAF579
monochromatic
#1131E3 #405BF1 #798CF5 #B2BDF9 #E3E7FD

Accessibility & contrast

On white

3.05
#798CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#798CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CF5
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CF5#FFFFFF#000000##000000
##798CF51.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6099F9
Deuteranopia (green-blind)
#548FF3
Tritanopia (blue-blind)
#43A3B5
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #798cf5;
/* rgb */ color: rgb(121, 140, 245);
/* oklch */ color: oklch(67.3% 0.156 273.8);
Tailwind
colors: {
  custom: {
    50: '#a7adf9',
    500: '#798cf5',
    950: '#000000',
  },
}
SCSS
$custom: #798cf5;
$custom-light: #a7adf9;
$custom-dark: #000000;
JSON
{
  "hex": "#798cf5",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 245
  },
  "hsl": {
    "h": 230.806,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67305,
    "c": 0.15609,
    "h": 273.8
  },
  "luminance": 0.29414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #798CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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