#796BC3#796BC3

#796BC3 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 58.1% C 0.132 H 288.9°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#796BC3
RGBrgb(121, 107, 195)
HSLhsl(250, 42%, 59%)
HSVhsv(250, 45%, 76%)
CMYKcmyk(37.9%, 45.1%, 0%, 23.5%)
CIE-LABlab(50.12, 26.53, -44.29)
CIE-LCHlch(50.12, 51.63, 300.92°)
OKLaboklab(58.06% 0.0428 -0.1249)
OKLCHoklch(58.06% 0.132 288.9)
XYZxyz(22.9905, 18.5198, 53.9825)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC3 #B5C36B
analogous
#6B89C3 #796BC3 #A56BC3
triadic
#796BC3 #C3796B #6BC379
tetradic
#796BC3 #C36B89 #B5C36B #6BC3A5
square
#796BC3 #C36B89 #B5C36B #6BC3A5
split-complementary
#796BC3 #C3A56B #89C36B
monochromatic
#403480 #5645AB #796BC3 #A097D5 #C8C2E6

Accessibility & contrast

On white

4.46
#796BC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#796BC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC3
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC3#FFFFFF#000000##000000
##796BC31.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C79C6
Deuteranopia (green-blind)
#4C75C1
Tritanopia (blue-blind)
#657C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796bc3;
/* rgb */ color: rgb(121, 107, 195);
/* oklch */ color: oklch(58.1% 0.132 288.9);
Tailwind
colors: {
  custom: {
    50: '#a395d5',
    500: '#796bc3',
    950: '#000000',
  },
}
SCSS
$custom: #796bc3;
$custom-light: #a395d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc3",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 195
  },
  "hsl": {
    "h": 249.545,
    "s": 42.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58057,
    "c": 0.13207,
    "h": 288.9
  },
  "luminance": 0.1852
}

Semantic roles & 50–950 ramp

primary
#796BC3
secondary
#D1D6B4
accent
#D256BE
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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