#796BD9#796BD9

#796BD9 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.4% C 0.162 H 286.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#796BD9
RGBrgb(121, 107, 217)
HSLhsl(248, 59%, 64%)
HSVhsv(248, 51%, 85%)
CMYKcmyk(44.2%, 50.7%, 0%, 14.9%)
CIE-LABlab(51.37, 32.78, -54.85)
CIE-LCHlch(51.37, 63.90, 300.87°)
OKLaboklab(59.4% 0.0452 -0.1559)
OKLCHoklch(59.4% 0.162 286.2)
XYZxyz(25.6636, 19.5890, 68.0610)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD9 #CBD96B
analogous
#6B94D9 #796BD9 #B06BD9
triadic
#796BD9 #D9796B #6BD979
tetradic
#796BD9 #D96B94 #CBD96B #6BD9B0
square
#796BD9 #D96B94 #CBD96B #6BD9B0
split-complementary
#796BD9 #D9B06B #94D96B
monochromatic
#3829A0 #4D3ACC #796BD9 #A59CE6 #D1CCF2

Accessibility & contrast

On white

4.27
#796BD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#796BD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD9
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD9#FFFFFF#000000##000000
##796BD91.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7DDD
Deuteranopia (green-blind)
#3777D7
Tritanopia (blue-blind)
#5B8298
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796bd9;
/* rgb */ color: rgb(121, 107, 217);
/* oklch */ color: oklch(59.4% 0.162 286.2);
Tailwind
colors: {
  custom: {
    50: '#a595e5',
    500: '#796bd9',
    950: '#000000',
  },
}
SCSS
$custom: #796bd9;
$custom-light: #a595e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd9",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 217
  },
  "hsl": {
    "h": 247.636,
    "s": 59.14,
    "l": 63.529
  },
  "oklch": {
    "l": 0.594,
    "c": 0.1623,
    "h": 286.2
  },
  "luminance": 0.1959
}

Semantic roles & 50–950 ramp

primary
#796BD9
secondary
#DEE3BC
accent
#C71FB1
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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