#798BB2#798BB2

#798BB2 is a light, moderate blue. Relative luminance 0.257; OKLCH L 63.7% C 0.062 H 265.4°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#798BB2
RGBrgb(121, 139, 178)
HSLhsl(221, 27%, 59%)
HSVhsv(221, 32%, 70%)
CMYKcmyk(32%, 21.9%, 0%, 30.2%)
CIE-LABlab(57.79, 2.93, -22.57)
CIE-LCHlch(57.79, 22.76, 277.40°)
OKLaboklab(63.71% -0.005 -0.0623)
OKLCHoklch(63.71% 0.062 265.4)
XYZxyz(25.1513, 25.7436, 45.7547)
Luminance0.2575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798BB2 #B2A079
analogous
#79A7B2 #798BB2 #8379B2
triadic
#798BB2 #B2798B #8BB279
tetradic
#798BB2 #B279A7 #B2A079 #79B283
square
#798BB2 #B279A7 #B2A079 #79B283
split-complementary
#798BB2 #B28379 #A7B279
monochromatic
#405070 #576B97 #798BB2 #A0ADC8 #C7CEDF

Accessibility & contrast

On white

3.42
#798BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#798BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798BB2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798BB2#FFFFFF#000000##000000
##798BB21.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8EB4
Deuteranopia (green-blind)
#7989B1
Tritanopia (blue-blind)
#699398
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #798bb2;
/* rgb */ color: rgb(121, 139, 178);
/* oklch */ color: oklch(63.7% 0.062 265.4);
Tailwind
colors: {
  custom: {
    50: '#a1acc9',
    500: '#798bb2',
    950: '#000000',
  },
}
SCSS
$custom: #798bb2;
$custom-light: #a1acc9;
$custom-dark: #000000;
JSON
{
  "hex": "#798bb2",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 178
  },
  "hsl": {
    "h": 221.053,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.63706,
    "c": 0.06249,
    "h": 265.4
  },
  "luminance": 0.25745
}

Semantic roles & 50–950 ramp

primary
#798BB2
secondary
#CFC8B8
accent
#A564C3
background
#FAFAFC
surface
#F3F4F8
border
#CDCED1
text
#0F1013
muted
#7F7F82

Preview Lab

Preview with #798BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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