#798BF2#798BF2

#798BF2 is a light, vivid blue. Relative luminance 0.289; OKLCH L 66.9% C 0.153 H 274.1°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#798BF2
RGBrgb(121, 139, 242)
HSLhsl(231, 82%, 71%)
HSVhsv(231, 50%, 95%)
CMYKcmyk(50%, 42.6%, 0%, 5.1%)
CIE-LABlab(60.73, 21.19, -53.88)
CIE-LCHlch(60.73, 57.90, 291.47°)
OKLaboklab(66.94% 0.0109 -0.1529)
OKLCHoklch(66.94% 0.153 274.1)
XYZxyz(33.1397, 28.9389, 87.8267)
Luminance0.2894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BF2 #F2E079
analogous
#79C7F2 #798BF2 #A379F2
triadic
#798BF2 #F2798B #8BF279
tetradic
#798BF2 #F279C7 #F2E079 #79F2A3
square
#798BF2 #F279C7 #F2E079 #79F2A3
split-complementary
#798BF2 #F2A379 #C7F279
monochromatic
#1533DB #415BED #798BF2 #B1BBF7 #E3E7FC

Accessibility & contrast

On white

3.09
#798BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#798BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BF2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BF2#FFFFFF#000000##000000
##798BF21.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6198F6
Deuteranopia (green-blind)
#558EF0
Tritanopia (blue-blind)
#46A1B3
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #798bf2;
/* rgb */ color: rgb(121, 139, 242);
/* oklch */ color: oklch(66.9% 0.153 274.1);
Tailwind
colors: {
  custom: {
    50: '#a6acf7',
    500: '#798bf2',
    950: '#000000',
  },
}
SCSS
$custom: #798bf2;
$custom-light: #a6acf7;
$custom-dark: #000000;
JSON
{
  "hex": "#798bf2",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 231.074,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66935,
    "c": 0.15324,
    "h": 274.1
  },
  "luminance": 0.28941
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #798BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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