#798EF5#798EF5

#798EF5 is a light, vivid blue. Relative luminance 0.300; OKLCH L 67.7% C 0.154 H 273.0°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#798EF5
RGBrgb(121, 142, 245)
HSLhsl(230, 86%, 72%)
HSVhsv(230, 51%, 96%)
CMYKcmyk(50.6%, 42%, 0%, 3.9%)
CIE-LABlab(61.66, 20.33, -54.06)
CIE-LCHlch(61.66, 57.76, 290.61°)
OKLaboklab(67.7% 0.008 -0.1533)
OKLCHoklch(67.7% 0.154 273)
XYZxyz(34.0343, 30.0013, 90.3659)
Luminance0.3000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EF5 #F5E079
analogous
#79CCF5 #798EF5 #A279F5
triadic
#798EF5 #F5798E #8EF579
tetradic
#798EF5 #F579CC #F5E079 #79F5A2
square
#798EF5 #F579CC #F5E079 #79F5A2
split-complementary
#798EF5 #F5A279 #CCF579
monochromatic
#1134E3 #405EF1 #798EF5 #B2BEF9 #E3E7FD

Accessibility & contrast

On white

3.00
#798EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#798EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #798EF5
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EF5#FFFFFF#000000##000000
##798EF51.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#649AF9
Deuteranopia (green-blind)
#5790F3
Tritanopia (blue-blind)
#43A4B6
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #798ef5;
/* rgb */ color: rgb(121, 142, 245);
/* oklch */ color: oklch(67.7% 0.154 273.0);
Tailwind
colors: {
  custom: {
    50: '#a7aef9',
    500: '#798ef5',
    950: '#000000',
  },
}
SCSS
$custom: #798ef5;
$custom-light: #a7aef9;
$custom-dark: #000000;
JSON
{
  "hex": "#798ef5",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 245
  },
  "hsl": {
    "h": 229.839,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67696,
    "c": 0.15356,
    "h": 273
  },
  "luminance": 0.30004
}

Semantic roles & 50–950 ramp

primary
#798EF5
secondary
#F5EFD5
accent
#BD03E3
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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