#796CBD#796CBD

#796CBD is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.9% C 0.122 H 289.4°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#796CBD
RGBrgb(121, 108, 189)
HSLhsl(250, 38%, 58%)
HSVhsv(250, 43%, 74%)
CMYKcmyk(36%, 42.9%, 0%, 25.9%)
CIE-LABlab(50.05, 24.27, -40.94)
CIE-LCHlch(50.05, 47.60, 300.66°)
OKLaboklab(57.9% 0.0405 -0.1152)
OKLCHoklch(57.9% 0.122 289.4)
XYZxyz(22.4306, 18.4636, 50.5163)
Luminance0.1846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CBD #B0BD6C
analogous
#6C87BD #796CBD #A16CBD
triadic
#796CBD #BD796C #6CBD79
tetradic
#796CBD #BD6C87 #B0BD6C #6CBDA1
square
#796CBD #BD6C87 #B0BD6C #6CBDA1
split-complementary
#796CBD #BDA16C #87BD6C
monochromatic
#413678 #5749A3 #796CBD #A096D0 #C6C0E3

Accessibility & contrast

On white

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

On black

4.69
#796CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CBD
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CBD#FFFFFF#000000##000000
##796CBD1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5179C0
Deuteranopia (green-blind)
#5175BB
Tritanopia (blue-blind)
#687B8B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796cbd;
/* rgb */ color: rgb(121, 108, 189);
/* oklch */ color: oklch(57.9% 0.122 289.4);
Tailwind
colors: {
  custom: {
    50: '#a296d1',
    500: '#796cbd',
    950: '#000000',
  },
}
SCSS
$custom: #796cbd;
$custom-light: #a296d1;
$custom-dark: #000000;
JSON
{
  "hex": "#796cbd",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 189
  },
  "hsl": {
    "h": 249.63,
    "s": 38.028,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57903,
    "c": 0.12208,
    "h": 289.4
  },
  "luminance": 0.18464
}

Semantic roles & 50–950 ramp

primary
#796CBD
secondary
#CDD3B2
accent
#CE5ABB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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