#798CB2#798CB2

#798CB2 is a light, moderate blue. Relative luminance 0.260; OKLCH L 63.9% C 0.061 H 264.0°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#798CB2
RGBrgb(121, 140, 178)
HSLhsl(220, 27%, 59%)
HSVhsv(220, 32%, 70%)
CMYKcmyk(32%, 21.3%, 0%, 30.2%)
CIE-LABlab(58.07, 2.36, -22.15)
CIE-LCHlch(58.07, 22.27, 276.07°)
OKLaboklab(63.92% -0.0064 -0.0611)
OKLCHoklch(63.92% 0.061 264)
XYZxyz(25.2968, 26.0345, 45.8031)
Luminance0.2604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798CB2 #B29F79
analogous
#79A8B2 #798CB2 #8279B2
triadic
#798CB2 #B2798C #8CB279
tetradic
#798CB2 #B279A8 #B29F79 #79B282
square
#798CB2 #B279A8 #B29F79 #79B282
split-complementary
#798CB2 #B28279 #A8B279
monochromatic
#405070 #576C97 #798CB2 #A0ADC8 #C7CFDF

Accessibility & contrast

On white

3.38
#798CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#798CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798CB2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798CB2#FFFFFF#000000##000000
##798CB21.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8EB4
Deuteranopia (green-blind)
#7A89B1
Tritanopia (blue-blind)
#699499
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #798cb2;
/* rgb */ color: rgb(121, 140, 178);
/* oklch */ color: oklch(63.9% 0.061 264.0);
Tailwind
colors: {
  custom: {
    50: '#a1adc9',
    500: '#798cb2',
    950: '#000000',
  },
}
SCSS
$custom: #798cb2;
$custom-light: #a1adc9;
$custom-dark: #000000;
JSON
{
  "hex": "#798cb2",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 178
  },
  "hsl": {
    "h": 220,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.63922,
    "c": 0.06144,
    "h": 264
  },
  "luminance": 0.26035
}

Semantic roles & 50–950 ramp

primary
#798CB2
secondary
#CFC7B8
accent
#A464C3
background
#FAFAFC
surface
#F3F4F8
border
#CDCED1
text
#0F1013
muted
#7F7F82

Preview Lab

Preview with #798CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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