#796DBB#796DBB

#796DBB is a mid, moderate blue. Relative luminance 0.186; OKLCH L 58.0% C 0.118 H 289.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#796DBB
RGBrgb(121, 109, 187)
HSLhsl(249, 36%, 58%)
HSVhsv(249, 42%, 73%)
CMYKcmyk(35.3%, 41.7%, 0%, 26.7%)
CIE-LABlab(50.20, 23.12, -39.55)
CIE-LCHlch(50.20, 45.82, 300.31°)
OKLaboklab(57.98% 0.0388 -0.1111)
OKLCHoklch(57.98% 0.118 289.3)
XYZxyz(22.3210, 18.5895, 49.4162)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DBB #AFBB6D
analogous
#6D88BB #796DBB #A06DBB
triadic
#796DBB #BB796D #6DBB79
tetradic
#796DBB #BB6D88 #AFBB6D #6DBBA0
square
#796DBB #BB6D88 #AFBB6D #6DBBA0
split-complementary
#796DBB #BBA06D #88BB6D
monochromatic
#413776 #584BA0 #796DBB #9F97CE #C6C1E2

Accessibility & contrast

On white

4.45
#796DBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#796DBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DBB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DBB#FFFFFF#000000##000000
##796DBB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5479BE
Deuteranopia (green-blind)
#5476B9
Tritanopia (blue-blind)
#687C8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796dbb;
/* rgb */ color: rgb(121, 109, 187);
/* oklch */ color: oklch(58.0% 0.118 289.3);
Tailwind
colors: {
  custom: {
    50: '#a297d0',
    500: '#796dbb',
    950: '#000000',
  },
}
SCSS
$custom: #796dbb;
$custom-light: #a297d0;
$custom-dark: #000000;
JSON
{
  "hex": "#796dbb",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 187
  },
  "hsl": {
    "h": 249.231,
    "s": 36.449,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57983,
    "c": 0.11769,
    "h": 289.3
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

primary
#796DBB
secondary
#CDD1B2
accent
#CC5BBB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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