#796BC9#796BC9

#796BC9 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.4% C 0.140 H 288.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#796BC9
RGBrgb(121, 107, 201)
HSLhsl(249, 47%, 60%)
HSVhsv(249, 47%, 79%)
CMYKcmyk(39.8%, 46.8%, 0%, 21.2%)
CIE-LABlab(50.45, 28.21, -47.21)
CIE-LCHlch(50.45, 55.00, 300.86°)
OKLaboklab(58.41% 0.0436 -0.1335)
OKLCHoklch(58.41% 0.14 288.1)
XYZxyz(23.6825, 18.7966, 57.6273)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC9 #BBC96B
analogous
#6B8CC9 #796BC9 #A86BC9
triadic
#796BC9 #C9796B #6BC979
tetradic
#796BC9 #C96B8C #BBC96B #6BC9A8
square
#796BC9 #C96B8C #BBC96B #6BC9A8
split-complementary
#796BC9 #C9A86B #8CC96B
monochromatic
#3E3288 #5342B5 #796BC9 #A298D9 #CAC5EA

Accessibility & contrast

On white

4.41
#796BC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#796BC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC9
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC9#FFFFFF#000000##000000
##796BC91.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#487ACC
Deuteranopia (green-blind)
#4776C7
Tritanopia (blue-blind)
#637E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796bc9;
/* rgb */ color: rgb(121, 107, 201);
/* oklch */ color: oklch(58.4% 0.140 288.1);
Tailwind
colors: {
  custom: {
    50: '#a395da',
    500: '#796bc9',
    950: '#000000',
  },
}
SCSS
$custom: #796bc9;
$custom-light: #a395da;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc9",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 201
  },
  "hsl": {
    "h": 248.936,
    "s": 46.535,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58411,
    "c": 0.14042,
    "h": 288.1
  },
  "luminance": 0.18797
}

Semantic roles & 50–950 ramp

primary
#796BC9
secondary
#D5DAB6
accent
#BA2CA5
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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