#796DB7#796DB7

#796DB7 is a mid, moderate blue. Relative luminance 0.184; OKLCH L 57.8% C 0.112 H 289.9°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#796DB7
RGBrgb(121, 109, 183)
HSLhsl(250, 34%, 57%)
HSVhsv(250, 40%, 72%)
CMYKcmyk(33.9%, 40.4%, 0%, 28.2%)
CIE-LABlab(50.00, 22.03, -37.56)
CIE-LCHlch(50.00, 43.54, 300.39°)
OKLaboklab(57.77% 0.0381 -0.1053)
OKLCHoklch(57.77% 0.112 289.9)
XYZxyz(21.8988, 18.4206, 47.1923)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DB7 #ABB76D
analogous
#6D86B7 #796DB7 #9E6DB7
triadic
#796DB7 #B7796D #6DB779
tetradic
#796DB7 #B76D86 #ABB76D #6DB79E
square
#796DB7 #B76D86 #ABB76D #6DB79E
split-complementary
#796DB7 #B79E6D #86B76D
monochromatic
#413872 #594C9B #796DB7 #9F96CB #C4BFDF

Accessibility & contrast

On white

4.48
#796DB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#796DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DB7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DB7#FFFFFF#000000##000000
##796DB71.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5678BA
Deuteranopia (green-blind)
#5675B5
Tritanopia (blue-blind)
#6A7B89
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796db7;
/* rgb */ color: rgb(121, 109, 183);
/* oklch */ color: oklch(57.8% 0.112 289.9);
Tailwind
colors: {
  custom: {
    50: '#a297cd',
    500: '#796db7',
    950: '#000000',
  },
}
SCSS
$custom: #796db7;
$custom-light: #a297cd;
$custom-dark: #000000;
JSON
{
  "hex": "#796db7",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 183
  },
  "hsl": {
    "h": 249.73,
    "s": 33.945,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57765,
    "c": 0.11198,
    "h": 289.9
  },
  "luminance": 0.18421
}

Semantic roles & 50–950 ramp

primary
#796DB7
secondary
#CACFB1
accent
#CA5EB8
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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