#796DBE#796DBE

#796DBE is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.1% C 0.122 H 288.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#796DBE
RGBrgb(121, 109, 190)
HSLhsl(249, 38%, 59%)
HSVhsv(249, 43%, 75%)
CMYKcmyk(36.3%, 42.6%, 0%, 25.5%)
CIE-LABlab(50.36, 23.95, -41.04)
CIE-LCHlch(50.36, 47.52, 300.26°)
OKLaboklab(58.15% 0.0393 -0.1154)
OKLCHoklch(58.15% 0.122 288.8)
XYZxyz(22.6456, 18.7193, 51.1253)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DBE #B2BE6D
analogous
#6D89BE #796DBE #A16DBE
triadic
#796DBE #BE796D #6DBE79
tetradic
#796DBE #BE6D89 #B2BE6D #6DBEA1
square
#796DBE #BE6D89 #B2BE6D #6DBEA1
split-complementary
#796DBE #BEA16D #89BE6D
monochromatic
#40367A #5749A5 #796DBE #A097D1 #C7C2E4

Accessibility & contrast

On white

4.43
#796DBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#796DBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DBE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DBE#FFFFFF#000000##000000
##796DBE1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#527AC1
Deuteranopia (green-blind)
#5276BC
Tritanopia (blue-blind)
#677D8C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796dbe;
/* rgb */ color: rgb(121, 109, 190);
/* oklch */ color: oklch(58.1% 0.122 288.8);
Tailwind
colors: {
  custom: {
    50: '#a297d2',
    500: '#796dbe',
    950: '#000000',
  },
}
SCSS
$custom: #796dbe;
$custom-light: #a297d2;
$custom-dark: #000000;
JSON
{
  "hex": "#796dbe",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 190
  },
  "hsl": {
    "h": 248.889,
    "s": 38.389,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5815,
    "c": 0.12196,
    "h": 288.8
  },
  "luminance": 0.1872
}

Semantic roles & 50–950 ramp

primary
#796DBE
secondary
#CFD3B3
accent
#CE59BD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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