#798FE5#798FE5

#798FE5 is a light, vivid blue. Relative luminance 0.294; OKLCH L 67.0% C 0.130 H 271.6°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#798FE5
RGBrgb(121, 143, 229)
HSLhsl(228, 68%, 69%)
HSVhsv(228, 47%, 90%)
CMYKcmyk(47.2%, 37.6%, 0%, 10.2%)
CIE-LABlab(61.10, 14.94, -46.10)
CIE-LCHlch(61.10, 48.46, 287.96°)
OKLaboklab(67.01% 0.0037 -0.1301)
OKLCHoklch(67.01% 0.13 271.6)
XYZxyz(31.8460, 29.3651, 78.1035)
Luminance0.2937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798FE5 #E5CF79
analogous
#79C5E5 #798FE5 #9979E5
triadic
#798FE5 #E5798F #8FE579
tetradic
#798FE5 #E579C5 #E5CF79 #79E599
square
#798FE5 #E579C5 #E5CF79 #79E599
split-complementary
#798FE5 #E59979 #C5E579
monochromatic
#2544BF #4664DB #798FE5 #ACBAEF #E0E5F9

Accessibility & contrast

On white

3.06
#798FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#798FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798FE5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798FE5#FFFFFF#000000##000000
##798FE51.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F98E8
Deuteranopia (green-blind)
#648FE3
Tritanopia (blue-blind)
#4FA1AF
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #798fe5;
/* rgb */ color: rgb(121, 143, 229);
/* oklch */ color: oklch(67.0% 0.130 271.6);
Tailwind
colors: {
  custom: {
    50: '#a5afed',
    500: '#798fe5',
    950: '#000000',
  },
}
SCSS
$custom: #798fe5;
$custom-light: #a5afed;
$custom-dark: #000000;
JSON
{
  "hex": "#798fe5",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 229
  },
  "hsl": {
    "h": 227.778,
    "s": 67.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.67007,
    "c": 0.13012,
    "h": 271.6
  },
  "luminance": 0.29367
}

Semantic roles & 50–950 ramp

primary
#798FE5
secondary
#EDE6CD
accent
#AA16CF
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#101016
muted
#7F7F84

Preview Lab

Preview with #798FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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