#796DBC#796DBC

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

Color values

HEX#796DBC
RGBrgb(121, 109, 188)
HSLhsl(249, 37%, 58%)
HSVhsv(249, 42%, 74%)
CMYKcmyk(35.6%, 42%, 0%, 26.3%)
CIE-LABlab(50.25, 23.40, -40.05)
CIE-LCHlch(50.25, 46.38, 300.29°)
OKLaboklab(58.04% 0.039 -0.1125)
OKLCHoklch(58.04% 0.119 289.1)
XYZxyz(22.4285, 18.6325, 49.9819)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DBC #B0BC6D
analogous
#6D88BC #796DBC #A06DBC
triadic
#796DBC #BC796D #6DBC79
tetradic
#796DBC #BC6D88 #B0BC6D #6DBCA0
square
#796DBC #BC6D88 #B0BC6D #6DBCA0
split-complementary
#796DBC #BCA06D #88BC6D
monochromatic
#413778 #574AA2 #796DBC #A097CF #C6C1E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796DBC#FFFFFF#000000##000000
##796DBC1.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)
#5379BF
Deuteranopia (green-blind)
#5376BA
Tritanopia (blue-blind)
#687C8B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796dbc;
/* rgb */ color: rgb(121, 109, 188);
/* oklch */ color: oklch(58.0% 0.119 289.1);
Tailwind
colors: {
  custom: {
    50: '#a297d0',
    500: '#796dbc',
    950: '#000000',
  },
}
SCSS
$custom: #796dbc;
$custom-light: #a297d0;
$custom-dark: #000000;
JSON
{
  "hex": "#796dbc",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 188
  },
  "hsl": {
    "h": 249.114,
    "s": 37.089,
    "l": 58.235
  },
  "oklch": {
    "l": 0.58039,
    "c": 0.11911,
    "h": 289.1
  },
  "luminance": 0.18633
}

Semantic roles & 50–950 ramp

primary
#796DBC
secondary
#CDD2B3
accent
#CD5BBC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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