#796FB8#796FB8

#796FB8 is a mid, moderate blue. Relative luminance 0.189; OKLCH L 58.2% C 0.110 H 288.8°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#796FB8
RGBrgb(121, 111, 184)
HSLhsl(248, 34%, 58%)
HSVhsv(248, 40%, 72%)
CMYKcmyk(34.2%, 39.7%, 0%, 27.8%)
CIE-LABlab(50.56, 21.10, -37.25)
CIE-LCHlch(50.56, 42.82, 299.53°)
OKLaboklab(58.21% 0.0355 -0.1044)
OKLCHoklch(58.21% 0.11 288.8)
XYZxyz(22.2190, 18.8940, 47.8143)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FB8 #AEB86F
analogous
#6F89B8 #796FB8 #9D6FB8
triadic
#796FB8 #B8796F #6FB879
tetradic
#796FB8 #B86F89 #AEB86F #6FB89D
square
#796FB8 #B86F89 #AEB86F #6FB89D
split-complementary
#796FB8 #B89D6F #89B86F
monochromatic
#413974 #584D9D #796FB8 #9F98CC #C5C1E0

Accessibility & contrast

On white

4.39
#796FB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#796FB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FB8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FB8#FFFFFF#000000##000000
##796FB81.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#587ABB
Deuteranopia (green-blind)
#5877B6
Tritanopia (blue-blind)
#697D8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796fb8;
/* rgb */ color: rgb(121, 111, 184);
/* oklch */ color: oklch(58.2% 0.110 288.8);
Tailwind
colors: {
  custom: {
    50: '#a298cd',
    500: '#796fb8',
    950: '#000000',
  },
}
SCSS
$custom: #796fb8;
$custom-light: #a298cd;
$custom-dark: #000000;
JSON
{
  "hex": "#796fb8",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 184
  },
  "hsl": {
    "h": 248.219,
    "s": 33.953,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58208,
    "c": 0.11029,
    "h": 288.8
  },
  "luminance": 0.18895
}

Semantic roles & 50–950 ramp

primary
#796FB8
secondary
#CCD0B3
accent
#CA5EBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796FB8

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

Preview Lab → · Contrast checker → · Palette generator →

#796FB8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva