#798CFC#798CFC

#798CFC is a light, vivid blue. Relative luminance 0.298; OKLCH L 67.7% C 0.166 H 273.9°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#798CFC
RGBrgb(121, 140, 252)
HSLhsl(231, 96%, 73%)
HSVhsv(231, 52%, 99%)
CMYKcmyk(52%, 44.4%, 0%, 1.2%)
CIE-LABlab(61.52, 23.65, -58.12)
CIE-LCHlch(61.52, 62.75, 292.14°)
OKLaboklab(67.72% 0.0113 -0.1653)
OKLCHoklch(67.72% 0.166 273.9)
XYZxyz(34.8283, 29.8471, 96.0024)
Luminance0.2985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CFC #FCE979
analogous
#79CDFC #798CFC #A779FC
triadic
#798CFC #FC798C #8CFC79
tetradic
#798CFC #FC79CD #FCE979 #79FCA7
square
#798CFC #FC79CD #FCE979 #79FCA7
split-complementary
#798CFC #FCA779 #CDFC79
monochromatic
#0528F5 #3D59FB #798CFC #B5BFFD #E1E5FE

Accessibility & contrast

On white

3.01
#798CFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#798CFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CFC
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CFC#FFFFFF#000000##000000
##798CFC1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B9AFF
Deuteranopia (green-blind)
#4D8FFA
Tritanopia (blue-blind)
#3CA4B8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #798cfc;
/* rgb */ color: rgb(121, 140, 252);
/* oklch */ color: oklch(67.7% 0.166 273.9);
Tailwind
colors: {
  custom: {
    50: '#a8adfe',
    500: '#798cfc',
    950: '#000000',
  },
}
SCSS
$custom: #798cfc;
$custom-light: #a8adfe;
$custom-dark: #000000;
JSON
{
  "hex": "#798cfc",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 252
  },
  "hsl": {
    "h": 231.298,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.67717,
    "c": 0.16565,
    "h": 273.9
  },
  "luminance": 0.29849
}

Semantic roles & 50–950 ramp

primary
#798CFC
secondary
#F7F2D4
accent
#C400E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101018
muted
#7F7F86

Preview Lab

Preview with #798CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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