#796CBB#796CBB

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

Color values

HEX#796CBB
RGBrgb(121, 108, 187)
HSLhsl(250, 37%, 58%)
HSVhsv(250, 42%, 73%)
CMYKcmyk(35.3%, 42.2%, 0%, 26.7%)
CIE-LABlab(49.95, 23.72, -39.95)
CIE-LCHlch(49.95, 46.46, 300.70°)
OKLaboklab(57.79% 0.0402 -0.1123)
OKLCHoklch(57.79% 0.119 289.7)
XYZxyz(22.2150, 18.3774, 49.3808)
Luminance0.1838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CBB #AEBB6C
analogous
#6C87BB #796CBB #A06CBB
triadic
#796CBB #BB796C #6CBB79
tetradic
#796CBB #BB6C87 #AEBB6C #6CBBA0
square
#796CBB #BB6C87 #AEBB6C #6CBBA0
split-complementary
#796CBB #BBA06C #87BB6C
monochromatic
#413776 #584AA0 #796CBB #9F96CE #C5C0E2

Accessibility & contrast

On white

4.49
#796CBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796CBB#FFFFFF#000000##000000
##796CBB1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5278BE
Deuteranopia (green-blind)
#5375B9
Tritanopia (blue-blind)
#687B8A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796cbb;
/* rgb */ color: rgb(121, 108, 187);
/* oklch */ color: oklch(57.8% 0.119 289.7);
Tailwind
colors: {
  custom: {
    50: '#a296d0',
    500: '#796cbb',
    950: '#000000',
  },
}
SCSS
$custom: #796cbb;
$custom-light: #a296d0;
$custom-dark: #000000;
JSON
{
  "hex": "#796cbb",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 187
  },
  "hsl": {
    "h": 249.873,
    "s": 36.744,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57791,
    "c": 0.11924,
    "h": 289.7
  },
  "luminance": 0.18378
}

Semantic roles & 50–950 ramp

primary
#796CBB
secondary
#CCD1B2
accent
#CD5BBA
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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