#798DFC#798DFC

#798DFC is a light, vivid blue. Relative luminance 0.301; OKLCH L 67.9% C 0.164 H 273.6°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#798DFC
RGBrgb(121, 141, 252)
HSLhsl(231, 96%, 73%)
HSVhsv(231, 52%, 99%)
CMYKcmyk(52%, 44%, 0%, 1.2%)
CIE-LABlab(61.78, 23.06, -57.72)
CIE-LCHlch(61.78, 62.15, 291.78°)
OKLaboklab(67.91% 0.0102 -0.1641)
OKLCHoklch(67.91% 0.164 273.6)
XYZxyz(34.9751, 30.1407, 96.0513)
Luminance0.3014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798DFC #FCE879
analogous
#79CEFC #798DFC #A679FC
triadic
#798DFC #FC798D #8DFC79
tetradic
#798DFC #FC79CE #FCE879 #79FCA6
square
#798DFC #FC79CE #FCE879 #79FCA6
split-complementary
#798DFC #FCA679 #CEFC79
monochromatic
#052AF5 #3D5AFB #798DFC #B5C0FD #E1E6FE

Accessibility & contrast

On white

2.99
#798DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#798DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #798DFC
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798DFC#FFFFFF#000000##000000
##798DFC1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#4F90FA
Tritanopia (blue-blind)
#3CA5B8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #798dfc;
/* rgb */ color: rgb(121, 141, 252);
/* oklch */ color: oklch(67.9% 0.164 273.6);
Tailwind
colors: {
  custom: {
    50: '#a8aefe',
    500: '#798dfc',
    950: '#000000',
  },
}
SCSS
$custom: #798dfc;
$custom-light: #a8aefe;
$custom-dark: #000000;
JSON
{
  "hex": "#798dfc",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 252
  },
  "hsl": {
    "h": 230.84,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.6791,
    "c": 0.16439,
    "h": 273.6
  },
  "luminance": 0.30143
}

Semantic roles & 50–950 ramp

primary
#798DFC
secondary
#F7F1D4
accent
#C200E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101018
muted
#7F7F86

Preview Lab

Preview with #798DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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