#798AF2#798AF2

#798AF2 is a light, vivid blue. Relative luminance 0.287; OKLCH L 66.7% C 0.155 H 274.5°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#798AF2
RGBrgb(121, 138, 242)
HSLhsl(232, 82%, 71%)
HSVhsv(232, 50%, 95%)
CMYKcmyk(50%, 43%, 0%, 5.1%)
CIE-LABlab(60.47, 21.78, -54.29)
CIE-LCHlch(60.47, 58.50, 291.86°)
OKLaboklab(66.74% 0.012 -0.154)
OKLCHoklch(66.74% 0.155 274.5)
XYZxyz(32.9956, 28.6507, 87.7787)
Luminance0.2865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798AF2 #F2E179
analogous
#79C6F2 #798AF2 #A479F2
triadic
#798AF2 #F2798A #8AF279
tetradic
#798AF2 #F279C6 #F2E179 #79F2A4
square
#798AF2 #F279C6 #F2E179 #79F2A4
split-complementary
#798AF2 #F2A479 #C6F279
monochromatic
#1531DB #4159ED #798AF2 #B1BBF7 #E3E7FC

Accessibility & contrast

On white

3.12
#798AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#798AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798AF2
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798AF2#FFFFFF#000000##000000
##798AF21.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F97F6
Deuteranopia (green-blind)
#538DF0
Tritanopia (blue-blind)
#46A0B2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #798af2;
/* rgb */ color: rgb(121, 138, 242);
/* oklch */ color: oklch(66.7% 0.155 274.5);
Tailwind
colors: {
  custom: {
    50: '#a6abf7',
    500: '#798af2',
    950: '#000000',
  },
}
SCSS
$custom: #798af2;
$custom-light: #a6abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#798af2",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 231.57,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.6674,
    "c": 0.15452,
    "h": 274.5
  },
  "luminance": 0.28653
}

Semantic roles & 50–950 ramp

primary
#798AF2
secondary
#F3EFD3
accent
#C007DF
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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