#796BC7#796BC7

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

Color values

HEX#796BC7
RGBrgb(121, 107, 199)
HSLhsl(249, 45%, 60%)
HSVhsv(249, 46%, 78%)
CMYKcmyk(39.2%, 46.2%, 0%, 22%)
CIE-LABlab(50.34, 27.65, -46.24)
CIE-LCHlch(50.34, 53.88, 300.88°)
OKLaboklab(58.29% 0.0434 -0.1306)
OKLCHoklch(58.29% 0.138 288.4)
XYZxyz(23.4488, 18.7031, 56.3963)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC7 #B9C76B
analogous
#6B8BC7 #796BC7 #A76BC7
triadic
#796BC7 #C7796B #6BC779
tetradic
#796BC7 #C76B8B #B9C76B #6BC7A7
square
#796BC7 #C76B8B #B9C76B #6BC7A7
split-complementary
#796BC7 #C7A76B #8BC76B
monochromatic
#3F3285 #5443B2 #796BC7 #A197D8 #C9C4E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796BC7#FFFFFF#000000##000000
##796BC71.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)
#497ACA
Deuteranopia (green-blind)
#4975C5
Tritanopia (blue-blind)
#647D8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796bc7;
/* rgb */ color: rgb(121, 107, 199);
/* oklch */ color: oklch(58.3% 0.138 288.4);
Tailwind
colors: {
  custom: {
    50: '#a395d8',
    500: '#796bc7',
    950: '#000000',
  },
}
SCSS
$custom: #796bc7;
$custom-light: #a395d8;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc7",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 199
  },
  "hsl": {
    "h": 249.13,
    "s": 45.098,
    "l": 60
  },
  "oklch": {
    "l": 0.58292,
    "c": 0.13764,
    "h": 288.4
  },
  "luminance": 0.18704
}

Semantic roles & 50–950 ramp

primary
#796BC7
secondary
#D3D9B5
accent
#D553C1
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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