#796FB2#796FB2

#796FB2 is a mid, moderate blue. Relative luminance 0.186; OKLCH L 57.9% C 0.102 H 289.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#796FB2
RGBrgb(121, 111, 178)
HSLhsl(249, 30%, 57%)
HSVhsv(249, 38%, 70%)
CMYKcmyk(32%, 37.6%, 0%, 30.2%)
CIE-LABlab(50.27, 19.48, -34.24)
CIE-LCHlch(50.27, 39.39, 299.64°)
OKLaboklab(57.89% 0.0342 -0.0957)
OKLCHoklch(57.89% 0.102 289.7)
XYZxyz(21.6034, 18.6477, 44.5720)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FB2 #A8B26F
analogous
#6F87B2 #796FB2 #9B6FB2
triadic
#796FB2 #B2796F #6FB279
tetradic
#796FB2 #B26F87 #A8B26F #6FB29B
square
#796FB2 #B26F87 #A8B26F #6FB29B
split-complementary
#796FB2 #B29B6F #87B26F
monochromatic
#423A6D #5A4F94 #796FB2 #9E97C7 #C3BFDD

Accessibility & contrast

On white

4.44
#796FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#796FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FB2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FB2#FFFFFF#000000##000000
##796FB21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B79B5
Deuteranopia (green-blind)
#5B76B0
Tritanopia (blue-blind)
#6B7B88
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796fb2;
/* rgb */ color: rgb(121, 111, 178);
/* oklch */ color: oklch(57.9% 0.102 289.7);
Tailwind
colors: {
  custom: {
    50: '#a198c9',
    500: '#796fb2',
    950: '#000000',
  },
}
SCSS
$custom: #796fb2;
$custom-light: #a198c9;
$custom-dark: #000000;
JSON
{
  "hex": "#796fb2",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 178
  },
  "hsl": {
    "h": 248.955,
    "s": 30.317,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57891,
    "c": 0.10162,
    "h": 289.7
  },
  "luminance": 0.18648
}

Semantic roles & 50–950 ramp

primary
#796FB2
secondary
#C8CCB1
accent
#C761B7
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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