#798EC2#798EC2

#798EC2 is a light, moderate blue. Relative luminance 0.273; OKLCH L 65.1% C 0.082 H 267.2°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#798EC2
RGBrgb(121, 142, 194)
HSLhsl(223, 37%, 62%)
HSVhsv(223, 38%, 76%)
CMYKcmyk(37.6%, 26.8%, 0%, 23.9%)
CIE-LABlab(59.26, 5.49, -29.40)
CIE-LCHlch(59.26, 29.90, 280.58°)
OKLaboklab(65.06% -0.004 -0.0817)
OKLCHoklch(65.06% 0.082 267.2)
XYZxyz(27.2928, 27.3047, 54.8607)
Luminance0.2731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EC2 #C2AD79
analogous
#79B3C2 #798EC2 #8979C2
triadic
#798EC2 #C2798E #8EC279
tetradic
#798EC2 #C279B3 #C2AD79 #79C289
square
#798EC2 #C279B3 #C2AD79 #79C289
split-complementary
#798EC2 #C28979 #B3C279
monochromatic
#3C5184 #4F6BAE #798EC2 #A3B1D5 #CDD5E8

Accessibility & contrast

On white

3.25
#798EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#798EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798EC2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EC2#FFFFFF#000000##000000
##798EC21.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D92C4
Deuteranopia (green-blind)
#768CC1
Tritanopia (blue-blind)
#6299A0
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #798ec2;
/* rgb */ color: rgb(121, 142, 194);
/* oklch */ color: oklch(65.1% 0.082 267.2);
Tailwind
colors: {
  custom: {
    50: '#a2aed4',
    500: '#798ec2',
    950: '#000000',
  },
}
SCSS
$custom: #798ec2;
$custom-light: #a2aed4;
$custom-dark: #000000;
JSON
{
  "hex": "#798ec2",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 194
  },
  "hsl": {
    "h": 222.74,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.65057,
    "c": 0.08184,
    "h": 267.2
  },
  "luminance": 0.27306
}

Semantic roles & 50–950 ramp

primary
#798EC2
secondary
#D9D1BE
accent
#8D35B0
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#0F1014
muted
#7F7F83

Preview Lab

Preview with #798EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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