#796CBE#796CBE

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

Color values

HEX#796CBE
RGBrgb(121, 108, 190)
HSLhsl(250, 39%, 58%)
HSVhsv(250, 43%, 75%)
CMYKcmyk(36.3%, 43.2%, 0%, 25.5%)
CIE-LABlab(50.11, 24.55, -41.44)
CIE-LCHlch(50.11, 48.16, 300.64°)
OKLaboklab(57.96% 0.0407 -0.1166)
OKLCHoklch(57.96% 0.124 289.2)
XYZxyz(22.5395, 18.5072, 51.0899)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CBE #B1BE6C
analogous
#6C88BE #796CBE #A26CBE
triadic
#796CBE #BE796C #6CBE79
tetradic
#796CBE #BE6C88 #B1BE6C #6CBEA2
square
#796CBE #BE6C88 #B1BE6C #6CBEA2
split-complementary
#796CBE #BEA26C #88BE6C
monochromatic
#41367A #5749A4 #796CBE #A096D1 #C6C1E4

Accessibility & contrast

On white

4.47
#796CBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796CBE#FFFFFF#000000##000000
##796CBE1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5179C1
Deuteranopia (green-blind)
#5175BC
Tritanopia (blue-blind)
#677C8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796cbe;
/* rgb */ color: rgb(121, 108, 190);
/* oklch */ color: oklch(58.0% 0.123 289.2);
Tailwind
colors: {
  custom: {
    50: '#a296d2',
    500: '#796cbe',
    950: '#000000',
  },
}
SCSS
$custom: #796cbe;
$custom-light: #a296d2;
$custom-dark: #000000;
JSON
{
  "hex": "#796cbe",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 190
  },
  "hsl": {
    "h": 249.512,
    "s": 38.679,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57959,
    "c": 0.1235,
    "h": 289.2
  },
  "luminance": 0.18508
}

Semantic roles & 50–950 ramp

primary
#796CBE
secondary
#CED3B3
accent
#CF59BC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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