#798BF7#798BF7

#798BF7 is a light, vivid blue. Relative luminance 0.292; OKLCH L 67.2% C 0.160 H 274.2°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#798BF7
RGBrgb(121, 139, 247)
HSLhsl(231, 89%, 72%)
HSVhsv(231, 51%, 97%)
CMYKcmyk(51%, 43.7%, 0%, 3.1%)
CIE-LABlab(61.00, 22.71, -56.21)
CIE-LCHlch(61.00, 60.63, 292.00°)
OKLaboklab(67.23% 0.0117 -0.1597)
OKLCHoklch(67.23% 0.16 274.2)
XYZxyz(33.9009, 29.2434, 91.8358)
Luminance0.2925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BF7 #F7E579
analogous
#79CAF7 #798BF7 #A679F7
triadic
#798BF7 #F7798B #8BF779
tetradic
#798BF7 #F779CA #F7E579 #79F7A6
square
#798BF7 #F779CA #F7E579 #79F7A6
split-complementary
#798BF7 #F7A679 #CAF779
monochromatic
#0E2DE8 #3F59F4 #798BF7 #B3BDFA #E2E6FD

Accessibility & contrast

On white

3.07
#798BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#798BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BF7
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BF7#FFFFFF#000000##000000
##798BF71.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D99FB
Deuteranopia (green-blind)
#508EF5
Tritanopia (blue-blind)
#42A2B5
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #798bf7;
/* rgb */ color: rgb(121, 139, 247);
/* oklch */ color: oklch(67.2% 0.160 274.2);
Tailwind
colors: {
  custom: {
    50: '#a7acfa',
    500: '#798bf7',
    950: '#000000',
  },
}
SCSS
$custom: #798bf7;
$custom-light: #a7acfa;
$custom-dark: #000000;
JSON
{
  "hex": "#798bf7",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 247
  },
  "hsl": {
    "h": 231.429,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67227,
    "c": 0.1601,
    "h": 274.2
  },
  "luminance": 0.29246
}

Semantic roles & 50–950 ramp

primary
#798BF7
secondary
#F5F1D6
accent
#C500E5
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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