#796CBC#796CBC

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

Color values

HEX#796CBC
RGBrgb(121, 108, 188)
HSLhsl(250, 37%, 58%)
HSVhsv(250, 43%, 74%)
CMYKcmyk(35.6%, 42.6%, 0%, 26.3%)
CIE-LABlab(50.00, 24.00, -40.45)
CIE-LCHlch(50.00, 47.03, 300.68°)
OKLaboklab(57.85% 0.0403 -0.1137)
OKLCHoklch(57.85% 0.121 289.5)
XYZxyz(22.3224, 18.4203, 49.9466)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CBC #AFBC6C
analogous
#6C87BC #796CBC #A16CBC
triadic
#796CBC #BC796C #6CBC79
tetradic
#796CBC #BC6C87 #AFBC6C #6CBCA1
square
#796CBC #BC6C87 #AFBC6C #6CBCA1
split-complementary
#796CBC #BCA16C #87BC6C
monochromatic
#413677 #584AA1 #796CBC #9F96CF #C6C0E2

Accessibility & contrast

On white

4.48
#796CBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##796CBC#FFFFFF#000000##000000
##796CBC1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5279BF
Deuteranopia (green-blind)
#5275BA
Tritanopia (blue-blind)
#687B8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796cbc;
/* rgb */ color: rgb(121, 108, 188);
/* oklch */ color: oklch(57.8% 0.121 289.5);
Tailwind
colors: {
  custom: {
    50: '#a296d0',
    500: '#796cbc',
    950: '#000000',
  },
}
SCSS
$custom: #796cbc;
$custom-light: #a296d0;
$custom-dark: #000000;
JSON
{
  "hex": "#796cbc",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 188
  },
  "hsl": {
    "h": 249.75,
    "s": 37.383,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57847,
    "c": 0.12067,
    "h": 289.5
  },
  "luminance": 0.18421
}

Semantic roles & 50–950 ramp

primary
#796CBC
secondary
#CDD2B2
accent
#CD5ABB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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