#798EFB#798EFB

#798EFB is a light, vivid blue. Relative luminance 0.304; OKLCH L 68.0% C 0.162 H 273.2°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#798EFB
RGBrgb(121, 142, 251)
HSLhsl(230, 94%, 73%)
HSVhsv(230, 52%, 98%)
CMYKcmyk(51.8%, 43.4%, 0%, 1.6%)
CIE-LABlab(61.98, 22.16, -56.85)
CIE-LCHlch(61.98, 61.02, 291.30°)
OKLaboklab(68.05% 0.0089 -0.1615)
OKLCHoklch(68.05% 0.162 273.2)
XYZxyz(34.9651, 30.3737, 95.2683)
Luminance0.3038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EFB #FBE679
analogous
#79CFFB #798EFB #A579FB
triadic
#798EFB #FB798E #8EFB79
tetradic
#798EFB #FB79CF #FBE679 #79FBA5
square
#798EFB #FB79CF #FBE679 #79FBA5
split-complementary
#798EFB #FBA579 #CFFB79
monochromatic
#072DF2 #3E5CF9 #798EFB #B4C0FD #E1E6FE

Accessibility & contrast

On white

2.97
#798EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#798EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #798EFB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EFB#FFFFFF#000000##000000
##798EFB1.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#5191F9
Tritanopia (blue-blind)
#3DA6B8
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #798efb;
/* rgb */ color: rgb(121, 142, 251);
/* oklch */ color: oklch(68.0% 0.162 273.2);
Tailwind
colors: {
  custom: {
    50: '#a7aefd',
    500: '#798efb',
    950: '#000000',
  },
}
SCSS
$custom: #798efb;
$custom-light: #a7aefd;
$custom-dark: #000000;
JSON
{
  "hex": "#798efb",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 251
  },
  "hsl": {
    "h": 230.308,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68045,
    "c": 0.16177,
    "h": 273.2
  },
  "luminance": 0.30376
}

Semantic roles & 50–950 ramp

primary
#798EFB
secondary
#F6F1D5
accent
#C000E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101018
muted
#7F7F86

Preview Lab

Preview with #798EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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