#796FBC#796FBC

#796FBC is a mid, moderate blue. Relative luminance 0.191; OKLCH L 58.4% C 0.116 H 288.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#796FBC
RGBrgb(121, 111, 188)
HSLhsl(248, 36%, 59%)
HSVhsv(248, 41%, 74%)
CMYKcmyk(35.6%, 41%, 0%, 26.3%)
CIE-LABlab(50.76, 22.20, -39.25)
CIE-LCHlch(50.76, 45.09, 299.49°)
OKLaboklab(58.42% 0.0363 -0.1102)
OKLCHoklch(58.42% 0.116 288.2)
XYZxyz(22.6443, 19.0640, 50.0539)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FBC #B2BC6F
analogous
#6F8BBC #796FBC #9F6FBC
triadic
#796FBC #BC796F #6FBC79
tetradic
#796FBC #BC6F8B #B2BC6F #6FBC9F
square
#796FBC #BC6F8B #B2BC6F #6FBC9F
split-complementary
#796FBC #BC9F6F #8BBC6F
monochromatic
#403879 #574CA2 #796FBC #A099CF #C7C3E3

Accessibility & contrast

On white

4.36
#796FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#796FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FBC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FBC#FFFFFF#000000##000000
##796FBC1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#567BBF
Deuteranopia (green-blind)
#5677BA
Tritanopia (blue-blind)
#687E8C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796fbc;
/* rgb */ color: rgb(121, 111, 188);
/* oklch */ color: oklch(58.4% 0.116 288.2);
Tailwind
colors: {
  custom: {
    50: '#a298d0',
    500: '#796fbc',
    950: '#000000',
  },
}
SCSS
$custom: #796fbc;
$custom-light: #a298d0;
$custom-dark: #000000;
JSON
{
  "hex": "#796fbc",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 188
  },
  "hsl": {
    "h": 247.792,
    "s": 36.493,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58424,
    "c": 0.11603,
    "h": 288.2
  },
  "luminance": 0.19065
}

Semantic roles & 50–950 ramp

primary
#796FBC
secondary
#CFD3B4
accent
#CC5BBE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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