#798FEC#798FEC

#798FEC is a light, vivid blue. Relative luminance 0.298; OKLCH L 67.4% C 0.140 H 272.1°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#798FEC
RGBrgb(121, 143, 236)
HSLhsl(229, 75%, 70%)
HSVhsv(229, 49%, 93%)
CMYKcmyk(48.7%, 39.4%, 0%, 7.5%)
CIE-LABlab(61.45, 17.03, -49.42)
CIE-LCHlch(61.45, 52.28, 289.01°)
OKLaboklab(67.39% 0.0052 -0.1398)
OKLCHoklch(67.39% 0.14 272.1)
XYZxyz(32.8431, 29.7640, 83.3550)
Luminance0.2977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798FEC #ECD679
analogous
#79C8EC #798FEC #9D79EC
triadic
#798FEC #EC798F #8FEC79
tetradic
#798FEC #EC79C8 #ECD679 #79EC9D
square
#798FEC #EC79C8 #ECD679 #79EC9D
split-complementary
#798FEC #EC9D79 #C8EC79
monochromatic
#1D3FCD #4362E4 #798FEC #AFBCF4 #E4E9FB

Accessibility & contrast

On white

3.02
#798FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#798FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798FEC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798FEC#FFFFFF#000000##000000
##798FEC1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9AF0
Deuteranopia (green-blind)
#5F90EA
Tritanopia (blue-blind)
#4AA3B2
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #798fec;
/* rgb */ color: rgb(121, 143, 236);
/* oklch */ color: oklch(67.4% 0.140 272.1);
Tailwind
colors: {
  custom: {
    50: '#a6aff2',
    500: '#798fec',
    950: '#000000',
  },
}
SCSS
$custom: #798fec;
$custom-light: #a6aff2;
$custom-dark: #000000;
JSON
{
  "hex": "#798fec",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 236
  },
  "hsl": {
    "h": 228.522,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.67388,
    "c": 0.13988,
    "h": 272.1
  },
  "luminance": 0.29766
}

Semantic roles & 50–950 ramp

primary
#798FEC
secondary
#F0EAD0
accent
#B10ED7
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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