#796BD3#796BD3

#796BD3 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 59.0% C 0.154 H 286.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#796BD3
RGBrgb(121, 107, 211)
HSLhsl(248, 54%, 62%)
HSVhsv(248, 49%, 83%)
CMYKcmyk(42.7%, 49.3%, 0%, 17.3%)
CIE-LABlab(51.02, 31.06, -52.01)
CIE-LCHlch(51.02, 60.58, 300.84°)
OKLaboklab(59.02% 0.0447 -0.1475)
OKLCHoklch(59.02% 0.154 286.9)
XYZxyz(24.8974, 19.2825, 64.0255)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD3 #C5D36B
analogous
#6B91D3 #796BD3 #AD6BD3
triadic
#796BD3 #D3796B #6BD379
tetradic
#796BD3 #D36B91 #C5D36B #6BD3AD
square
#796BD3 #D36B91 #C5D36B #6BD3AD
split-complementary
#796BD3 #D3AD6B #91D36B
monochromatic
#3B2D97 #4E3CC5 #796BD3 #A49AE1 #CEC9EF

Accessibility & contrast

On white

4.32
#796BD3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#796BD3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD3#FFFFFF#000000##000000
##796BD31.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7CD7
Deuteranopia (green-blind)
#3E77D1
Tritanopia (blue-blind)
#5E8195
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796bd3;
/* rgb */ color: rgb(121, 107, 211);
/* oklch */ color: oklch(59.0% 0.154 286.9);
Tailwind
colors: {
  custom: {
    50: '#a495e1',
    500: '#796bd3',
    950: '#000000',
  },
}
SCSS
$custom: #796bd3;
$custom-light: #a495e1;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd3",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 211
  },
  "hsl": {
    "h": 248.077,
    "s": 54.167,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59021,
    "c": 0.15417,
    "h": 286.9
  },
  "luminance": 0.19283
}

Semantic roles & 50–950 ramp

primary
#796BD3
secondary
#DBE0BA
accent
#C224AC
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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